[pkg-java] r17844 - trunk/jspwiki/debian

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Mar 6 15:39:16 UTC 2014


Author: ebourg-guest
Date: 2014-03-06 15:39:16 +0000 (Thu, 06 Mar 2014)
New Revision: 17844

Added:
   trunk/jspwiki/debian/orig-tar.sh
Modified:
   trunk/jspwiki/debian/changelog
   trunk/jspwiki/debian/rules
   trunk/jspwiki/debian/watch
Log:
Added debian/orig-tar.sh to build the upstream tarball



Modified: trunk/jspwiki/debian/changelog
===================================================================
--- trunk/jspwiki/debian/changelog	2014-03-06 15:10:02 UTC (rev 17843)
+++ trunk/jspwiki/debian/changelog	2014-03-06 15:39:16 UTC (rev 17844)
@@ -13,6 +13,7 @@
     - Updated the Homepage field
   * Added a watch file
   * debian/rules: Use dh_install to install the files in /etc/jspwiki
+  * Added debian/orig-tar.sh to build the upstream tarball
 
  -- Emmanuel Bourg <ebourg at apache.org>  Thu, 06 Mar 2014 12:59:23 +0100
 

Added: trunk/jspwiki/debian/orig-tar.sh
===================================================================
--- trunk/jspwiki/debian/orig-tar.sh	                        (rev 0)
+++ trunk/jspwiki/debian/orig-tar.sh	2014-03-06 15:39:16 UTC (rev 17844)
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../jspwiki_$VERSION.orig.tar.xz
+DIR=jspwiki-$VERSION
+TAG=$(echo jspwiki_$VERSION | sed -e 's/[\.~]/_/g')
+
+svn export http://svn.apache.org/repos/asf/jspwiki/tags/$TAG $DIR
+tar -c -J -f $TAR --exclude '*.jar' --exclude '.settings' --exclude '.classpath' --exclude '.project' $DIR
+rm -rf $DIR ../$TAG $3


Property changes on: trunk/jspwiki/debian/orig-tar.sh
___________________________________________________________________
Added: svn:executable
   + *

Modified: trunk/jspwiki/debian/rules
===================================================================
--- trunk/jspwiki/debian/rules	2014-03-06 15:10:02 UTC (rev 17843)
+++ trunk/jspwiki/debian/rules	2014-03-06 15:39:16 UTC (rev 17844)
@@ -44,14 +44,7 @@
 	JAVA_HOME=/usr/lib/jvm/default-java ant clean
 
 get-orig-source:
-	mkdir jspwiki-2.8.0
-	cd jspwiki-2.8.0
-	wget http://www.ecyrd.com/~jalkanen/JSPWiki/2.8.0/JSPWiki-2.8.0-src.zip
-	unzip JSPWiki-2.8.0-src.zip
-	rm JSPWiki-2.8.0-src.zip
-	cd ..
-	tar czf jspwiki_2.8.0.orig.tar.gz jspwiki-2.8.0
-	rm -rf jspwiki-2.8.0
+	uscan --download-version 2.8.0 --rename
 
 install:	build
 	dh_testdir

Modified: trunk/jspwiki/debian/watch
===================================================================
--- trunk/jspwiki/debian/watch	2014-03-06 15:10:02 UTC (rev 17843)
+++ trunk/jspwiki/debian/watch	2014-03-06 15:39:16 UTC (rev 17844)
@@ -1,3 +1,3 @@
 version=3
 opts=uversionmangle=s/_/./g \
-http://svn.apache.org/repos/asf/jspwiki/tags/ jspwiki_([\d_]+)/.*
+http://svn.apache.org/repos/asf/jspwiki/tags/ jspwiki_([\d_]+)/.* debian debian/orig-tar.sh




More information about the pkg-java-commits mailing list