[janino] 01/08: Build the source tarball from the upstream SVN repository

Emmanuel Bourg ebourg-guest at alioth.debian.org
Tue Oct 1 23:00:53 UTC 2013


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

ebourg-guest pushed a commit to branch master
in repository janino.

commit a63091f06b856541c6052ef0579ec529b383e3de
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Oct 1 23:33:04 2013 +0200

    Build the source tarball from the upstream SVN repository
---
 debian/orig-tar.sh |   16 ++++++++++++++++
 debian/watch       |    2 +-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..8bc59d3
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../janino_$VERSION.orig.tar.xz
+DIR=janino-$VERSION
+
+svn export https://svn.codehaus.org/janino/tags/janino_$VERSION/ $DIR
+tar -c -J -f $TAR --exclude .classpath --exclude .settings --exclude .project --exclude *.jar --exclude .hgignore $DIR
+rm -rf $DIR ../$TAG $3
+
+# 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/watch b/debian/watch
index 4e75957..3e9d885 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
 version=3
-http://janino.net/changelog.html .*janino-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)|zip)
+http://janino.net/changelog.html .*janino-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)|zip) debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list