[pkg-java] r13817 - trunk/jtreg/debian

Sylvestre Ledru sylvestre at alioth.debian.org
Thu Jun 23 19:54:40 UTC 2011


Author: sylvestre
Date: 2011-06-23 19:54:39 +0000 (Thu, 23 Jun 2011)
New Revision: 13817

Added:
   trunk/jtreg/debian/orig-tar.sh
   trunk/jtreg/debian/watch
Log:
Add a watch + repack script (uscan to trigger it)

Added: trunk/jtreg/debian/orig-tar.sh
===================================================================
--- trunk/jtreg/debian/orig-tar.sh	                        (rev 0)
+++ trunk/jtreg/debian/orig-tar.sh	2011-06-23 19:54:39 UTC (rev 13817)
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+
+VERSION=$(dpkg-parsechangelog | sed -ne 's,^Version: \(.*\)-.*,\1,p')
+SOURCE=$(dpkg-parsechangelog | sed -ne 's,Source: \(.*\),\1,p')
+
+DIR=jtreg-${VERSION}
+TAR=../${SOURCE}_${VERSION}.orig.tar.bz2
+
+# clean up the upstream tarball
+# Export to the $DIR directory since there is no directory in 
+# the archive
+unzip $3 -d $DIR
+tar -c -j -f $TAR $DIR # -X debian/orig-tar.exclude $DIR
+rm -rf $DIR $3
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+    . .svn/deb-layout
+    mv $TAR $origDir
+    echo "moved $TAR to $origDir"
+fi
+
+exit 0


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

Added: trunk/jtreg/debian/watch
===================================================================
--- trunk/jtreg/debian/watch	                        (rev 0)
+++ trunk/jtreg/debian/watch	2011-06-23 19:54:39 UTC (rev 13817)
@@ -0,0 +1,4 @@
+version=3
+http://download.java.net/openjdk/jtreg/ \
+ .*/jtreg-(.*)-src-.*.zip debian debian/orig-tar.sh
+




More information about the pkg-java-commits mailing list