[pkg-java] r13765 - trunk/libjtharness-java/debian

Sylvestre Ledru sylvestre at alioth.debian.org
Tue Jun 7 21:35:20 UTC 2011


Author: sylvestre
Date: 2011-06-07 21:35:20 +0000 (Tue, 07 Jun 2011)
New Revision: 13765

Added:
   trunk/libjtharness-java/debian/orig-tar.sh
   trunk/libjtharness-java/debian/watch
Log:
add a watch and repack script

Added: trunk/libjtharness-java/debian/orig-tar.sh
===================================================================
--- trunk/libjtharness-java/debian/orig-tar.sh	                        (rev 0)
+++ trunk/libjtharness-java/debian/orig-tar.sh	2011-06-07 21:35:20 UTC (rev 13765)
@@ -0,0 +1,21 @@
+#!/bin/sh
+SOURCE=$(dpkg-parsechangelog | sed -ne 's,Source: \(.*\),\1,p')
+VERSION=$(dpkg-parsechangelog | sed -ne 's,^Version: \(.*\)-.*,\1,p')
+echo $VERSION
+UNDERSCOREVERSION=$( echo $VERSION | sed 's/\./_/g')
+FILE=$3
+TAR=../${SOURCE}_${VERSION}.orig.tar.bz2
+DIR=$SOURCE-$VERSION
+
+svn co https://svn.java.net/svn/jtharness~svn/tags/$SOURCE-$UNDERSCOREVERSION/code/ $DIR
+tar -jcf  $TAR  --exclude '*.svn*' $DIR
+rm -rf $DIR $FILE
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi
+
+exit 0
\ No newline at end of file


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

Added: trunk/libjtharness-java/debian/watch
===================================================================
--- trunk/libjtharness-java/debian/watch	                        (rev 0)
+++ trunk/libjtharness-java/debian/watch	2011-06-07 21:35:20 UTC (rev 13765)
@@ -0,0 +1,4 @@
+version=3
+opts=uversionmangle=s/_([^-]+)/.$1.0/;s/bin/Rel/ \
+http://download.java.net/jtharness/download.html .*/jtharness-(.*)-.*\.zip \
+debian debian/orig-tar.sh




More information about the pkg-java-commits mailing list