[libopensaml2-java] 01/07: add debian/watch and debian/orig-tar.sh script

Tony Mancill tmancill at moszumanska.debian.org
Thu Aug 28 01:35:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

tmancill pushed a commit to branch master
in repository libopensaml2-java.

commit 9cc97dc136addf30fa38c0ee1f57dd82b9c84287
Author: tony mancill <tmancill at debian.org>
Date:   Wed Aug 27 17:46:40 2014 -0700

    add debian/watch and debian/orig-tar.sh script
---
 debian/orig-tar.sh | 19 +++++++++++++++++++
 debian/rules       |  2 +-
 debian/watch       |  3 +++
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..03ff170
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+set -x
+VERSION=$2
+TAR=../libopensaml2-java_$VERSION.orig.tar.xz
+DIR=libopensaml2-java-$VERSION
+TAG=$(echo "$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
+
+svn export https://svn.shibboleth.net/java-opensaml2/tags/${TAG}/ $DIR
+XZ_OPT=--best tar -c -J -f $TAR \
+  --exclude '*.jar' \
+  --exclude '*.class' \
+$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
diff --git a/debian/rules b/debian/rules
index b76c54a..d5e175c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,4 +6,4 @@ include /usr/share/cdbs/1/class/maven.mk
 JAVA_HOME := /usr/lib/jvm/default-java
 
 get-orig-source:
-	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
+	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --verbose --no-symlink
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..70ee2e8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+  http://svn.shibboleth.net/view/java-opensaml2/tags/ (\d.*)/ \
+  debian sh debian/orig-tar.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libopensaml2-java.git



More information about the pkg-java-commits mailing list