[java-allocation-instrumenter] 05/05: Download the upstream releases with uscan

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Dec 4 22:31:36 UTC 2014


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

ebourg-guest pushed a commit to branch master
in repository java-allocation-instrumenter.

commit b2be34948e1aa4280382e60dc92d142393e1e763
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Dec 4 23:30:51 2014 +0100

    Download the upstream releases with uscan
---
 debian/README.source | 12 ------------
 debian/orig-tar.sh   | 12 ++++++++++++
 debian/rules         |  3 +++
 debian/watch         |  2 +-
 4 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/debian/README.source b/debian/README.source
deleted file mode 100644
index 0dbe66a..0000000
--- a/debian/README.source
+++ /dev/null
@@ -1,12 +0,0 @@
-java-allocation-instrumenter for Debian
----------------------------------------
-
-The source tarball for this package was created indirectly from the source
-code in subversion using the following commands, since no releases have been
-made.
-
-$ svn checkout http://java-allocation-instrumenter.googlecode.com/svn/tags/java-allocation-instrumenter-2.1 java-allocation-instrumenter-2.1
-$ tar cfvz java-allocation-instrumenter_2.1.orig.tar.gz java-allocation-instrumenter-2.1/
-
- -- Tim Potter <tpot at hp.com>  Mon, 01 Dec 2014 22:50:43 +1100
-
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..d9c6055
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+VERSION=$2
+DIR=java-allocation-instrumenter-$VERSION
+TAR=../java-allocation-instrumenter_$VERSION.orig.tar.xz
+
+rm $3
+
+svn export http://java-allocation-instrumenter.googlecode.com/svn/tags/java-allocation-instrumenter-$VERSION $DIR
+
+tar -c -J -f $TAR $DIR
+rm -Rf $DIR
diff --git a/debian/rules b/debian/rules
index 027d7eb..12b23b7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,3 +5,6 @@ export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
 
 %:
 	dh $@ --buildsystem=maven --with javahelper
+
+get-orig-source:
+	uscan --download-current-version --force-download --no-symlink
diff --git a/debian/watch b/debian/watch
index ea1dd32..0a21915 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
 version=3
-http://java-allocation-instrumenter.googlecode.com/svn/tags/ .*java-allocation-instrumenter-([\d\.]+).*
+http://java-allocation-instrumenter.googlecode.com/svn/tags/ .*java-allocation-instrumenter-([\d\.]+).* debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list