[jtharness] 02/24: add a watch and repack script
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Jun 18 15:54:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository jtharness.
commit 762d8a2e5c29bb8521333b24005b4f9efbd27c6c
Author: Sylvestre Ledru <sylvestre at debian.org>
Date: Tue Jun 7 21:35:20 2011 +0000
add a watch and repack script
---
debian/orig-tar.sh | 21 +++++++++++++++++++++
debian/watch | 4 ++++
2 files changed, 25 insertions(+)
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..5580e79
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -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
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..25bac10
--- /dev/null
+++ b/debian/watch
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jtharness.git
More information about the pkg-java-commits
mailing list