[pkg-java] r12346 - trunk/libwoodstox-java/debian

Torsten Werner twerner at alioth.debian.org
Sat May 8 10:44:01 UTC 2010


Author: twerner
Date: 2010-05-08 10:44:00 +0000 (Sat, 08 May 2010)
New Revision: 12346

Added:
   trunk/libwoodstox-java/debian/orig-tar.sh
Modified:
   trunk/libwoodstox-java/debian/changelog
   trunk/libwoodstox-java/debian/rules
   trunk/libwoodstox-java/debian/watch
Log:
* Add get-orig-source target to debian/rules.
* Add debian/orig-tar.sh to clean up orig tarball from prebuilt jar files.

Modified: trunk/libwoodstox-java/debian/changelog
===================================================================
--- trunk/libwoodstox-java/debian/changelog	2010-05-08 10:21:24 UTC (rev 12345)
+++ trunk/libwoodstox-java/debian/changelog	2010-05-08 10:44:00 UTC (rev 12346)
@@ -9,6 +9,8 @@
   [ Torsten Werner ]
   * Merge changes from Ubuntu.
   * Switch to source format 3.0.
+  * Add get-orig-source target to debian/rules.
+  * Add debian/orig-tar.sh to clean up orig tarball from prebuilt jar files.
 
  -- Torsten Werner <twerner at debian.org>  Sat, 08 May 2010 12:19:39 +0200
 

Added: trunk/libwoodstox-java/debian/orig-tar.sh
===================================================================
--- trunk/libwoodstox-java/debian/orig-tar.sh	                        (rev 0)
+++ trunk/libwoodstox-java/debian/orig-tar.sh	2010-05-08 10:44:00 UTC (rev 12346)
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+
+TAR=../libwoodstox-java_$2.orig.tar.gz
+DIR=woodstox-$2
+
+# clean up the upstream tarball
+tar -x -z -f $TAR
+tar -c -z -f $TAR --exclude '*.jar' $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi


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

Modified: trunk/libwoodstox-java/debian/rules
===================================================================
--- trunk/libwoodstox-java/debian/rules	2010-05-08 10:21:24 UTC (rev 12345)
+++ trunk/libwoodstox-java/debian/rules	2010-05-08 10:44:00 UTC (rev 12346)
@@ -16,3 +16,5 @@
 clean::
 	-rm -Rf build doc test dist
 
+get-orig-source:
+	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename

Modified: trunk/libwoodstox-java/debian/watch
===================================================================
--- trunk/libwoodstox-java/debian/watch	2010-05-08 10:21:24 UTC (rev 12345)
+++ trunk/libwoodstox-java/debian/watch	2010-05-08 10:44:00 UTC (rev 12346)
@@ -1,4 +1,5 @@
 # The watchfile for libwoodstox
 version=3
 opts=dversionmangle=s/\.dfsg// \
-http://wiki.fasterxml.com/WoodstoxDownload .*-src-([[:digit:].]+)\.tar\.gz
+  http://wiki.fasterxml.com/WoodstoxDownload .*-src-([[:digit:].]+)\.tar\.gz \
+  debian debian/orig-tar.sh




More information about the pkg-java-commits mailing list