The following commit has been merged in the master branch:
commit 4e32bdb501097069f3f6ae0539e48ec02fd9afb1
Author: Giovanni Mascellani <mascell...@poisson.phc.unipi.it>
Date:   Sat Sep 10 14:55:24 2011 +0200

    More powerful get_orig_source.sh script.
    
    * Checkout a specific upstream SVN revision.
    * Ability to checkout a branch or a tag.

diff --git a/debian/get_orig_source.sh b/debian/get_orig_source.sh
index 5507aea..34cfd9a 100755
--- a/debian/get_orig_source.sh
+++ b/debian/get_orig_source.sh
@@ -2,7 +2,10 @@
 
 # Input:
 # $TAG - the SVN tag to export
+# $BRANCH - the SVN branch to export
+# (exactly one among $TAG and $BRANCH must be specified)
 # $VERSION - the upstream version of the generated tarball
+# $REVISION (optional) - export a specific revision of the SVN repository
 
 DESTDIR="../tarballs/geogebra-$VERSION"
 DESTTGZ="../tarballs/geogebra_$VERSION.orig.tar.gz"
@@ -10,7 +13,16 @@ TEMPDIR="$(mktemp -d)"
 
 # Downloads code from SVN repository
 test -d ../tarballs/. || mkdir -p ../tarballs
-svn export "http://geogebra.uni.lu/svn/tags/$TAG/geogebra/"; "$DESTDIR"
+if [ "x$TAG" == "x" ] ; then
+       SVNDIR="branches/$BRANCH/geogebra/"
+else
+       SVNDIR="tags/$TAG/geogebra/"
+fi
+if [ "x$REVISION" == "x" ] ; then
+       svn export "http://geogebra.uni.lu/svn/$SVNDIR"; "$DESTDIR"
+else
+       svn export -r "$REVISION" "http://geogebra.uni.lu/svn/$SVNDIR"; 
"$DESTDIR"
+fi
 
 # Removes all upstream JARs
 find "$DESTDIR" -name '*.jar' | xargs rm -vf

-- 
GeoGebra: Dynamic mathematics software for education

_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to