[h2database] 11/11: Added an orig-tar.sh script

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Feb 16 18:26:18 UTC 2015


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

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

commit 477fddd20d4f0f651312b1b0740247d2865e6ca5
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Feb 16 19:25:40 2015 +0100

    Added an orig-tar.sh script
---
 debian/orig-tar.sh | 15 +++++++++++++++
 debian/rules       |  3 +++
 debian/watch       |  3 +--
 3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..c4777e8
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../h2database_$VERSION.orig.tar.xz
+DIR=h2database-$VERSION
+TAG=version-$VERSION
+
+svn export http://h2database.googlecode.com/svn/tags/$TAG/h2 $DIR
+XZ_OPT=--best tar -c -v -J -f $TAR \
+    --exclude '*.jar' \
+    --exclude '*.class' \
+    --exclude '*.bat' \
+    --exclude 'service/*' \
+    $DIR
+rm -rf $DIR $3
diff --git a/debian/rules b/debian/rules
index cbe85c4..87454c8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,3 +21,6 @@ override_dh_auto_clean:
 	rm -rf temp bin docs/javadoc
 	mh_clean
 	dh_auto_clean
+
+get-orig-source:
+	uscan --download-current-version --force-download --no-symlink
diff --git a/debian/watch b/debian/watch
index 5dcfaab..d80d02b 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,2 @@
 version=3
-#http://www.h2database.com/html/download.html http://repo2.maven.org/maven2/com/h2database/h2/h2-(\d+\.\d+\.\d+)/h2-(\d+\.\d+\.\d+)-sources.jar
-http://www.h2database.com/html/download.html http://repo2.maven.org/maven2/com/h2database/h2/[0-9\.]+/h2-([0-9\.]+)-sources.jar
+http://www.h2database.com/html/download.html http://repo2.maven.org/maven2/com/h2database/h2/[0-9\.]+/h2-([0-9\.]+)-sources.jar debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list