[jtharness] 12/24: Modified orig-tar.sh to download a release with the short version
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Jun 18 15:54:45 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 c1e8ba56bfa06cff214ab806789b003b60bfa83e
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Mon Sep 29 21:36:02 2014 +0000
Modified orig-tar.sh to download a release with the short version
---
debian/orig-tar.sh | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index a65e81b..f926dde 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,15 +1,16 @@
#!/bin/sh
SOURCE=$(dpkg-parsechangelog | sed -ne 's,Source: \(.*\),\1,p')
-VERSION=$(dpkg-parsechangelog | sed -ne 's,^Version: \(.*\)-.*,\1,p')
-echo $VERSION
+VERSION=$2
UNDERSCOREVERSION=$( echo $VERSION | sed 's/\./_/g')
-FILE=$3
TAR=../${SOURCE}_${VERSION}.orig.tar.xz
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
+TAG=$( svn list https://svn.java.net/svn/jtharness~svn/tags | grep $UNDERSCOREVERSION )
+echo "Tag: $TAG"
+
+svn export https://svn.java.net/svn/jtharness~svn/tags/$TAG/code/ $DIR
+XZ_OPT=--best tar -Jcf $TAR $DIR
+rm -rf $DIR $3
# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
--
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