[plexus-digest] 04/24: * Update watch and orig-tar.sh to make them work
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Aug 29 22:45:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository plexus-digest.
commit eb5ec9371467e378c2c8ad083910e8be36c3ac0e
Author: Ludovic Claude <ludovic.claude at laposte.net>
Date: Mon Jul 6 19:24:54 2009 +0000
* Update watch and orig-tar.sh to make them work
---
debian/orig-tar.sh | 28 +++++++++++++++-------------
debian/watch | 10 ++--------
2 files changed, 17 insertions(+), 21 deletions(-)
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 95251e1..c2e4c75 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,18 +1,20 @@
#!/bin/sh -e
-# $1 = version
+VERSION=$2
+TAR=../plexus-digest_$VERSION.orig.tar.gz
+DIR=plexus-digest-$VERSION
+TAG=plexus-digest-$VERSION
+
+svn export http://svn.codehaus.org/plexus/plexus-components/tags/$TAG/ $DIR
+tar -c -z -f $TAR $DIR
+rm -rf $DIR ../$TAG
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $TAR $origDir
+ echo "moved $TAR to $origDir"
+fi
-TAG=https://svn.codehaus.org/plexus/plexus-components/tags/plexus-digest-$1/
-
-SOURCE=plexus-digest-$1
-mkdir $SOURCE
-cd $SOURCE || exit 2
-svn export $TAG
-
-GZIP=--best tar czf ../plexus-digest_$1.orig.tar.gz $SOURCE || exit 2
-
-
-cd ..
-rm -rf $SOURCE
diff --git a/debian/watch b/debian/watch
index e3a7c89..67df9bb 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,9 +1,3 @@
version=3
-# makes the orig-tar.sh script obsolete
-opts=downloadurlmangle=s#browse/.*/plexus-digest-(.*)$#browse/~tarball=tgz/plexus/plexus-components/tags/plexus-digest-$1/plexus-digest-$1.tgz#,filenamemangle=s#.*/(plexus-digest-[^/]+)$#$1.tgz# \
- http://svn.plexus.codehaus.org/browse/plexus/plexus-components/tags \
- ^.*/plexus-digest-([[:digit:].]+)$
-
-# alternative:
-# http://svn.codehaus.org/plexus/plexus-components/tags/ \
-# plexus-digest-(.*)/ debian debian/orig-tar.sh
+http://svn.codehaus.org/plexus/plexus-components/tags/ \
+ plexus-digest-(.*)/ debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/plexus-digest.git
More information about the pkg-java-commits
mailing list