[maven-shared-utils] 03/07: Added debian/orig-tar.sh to build the upstream tarball from SVN

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu May 18 12:10:56 UTC 2017


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

ebourg-guest pushed a commit to branch master
in repository maven-shared-utils.

commit b0a9ce8713ae32a9b27a9221ff7e2cb05e55d9f0
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue May 16 13:14:04 2017 +0200

    Added debian/orig-tar.sh to build the upstream tarball from SVN
---
 debian/changelog   |  1 +
 debian/orig-tar.sh | 11 +++++++++++
 debian/watch       |  3 +--
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 14231af..ee57104 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ maven-shared-utils (3.0.0-2) UNRELEASED; urgency=medium
   * Team upload.
   * Switch to debhelper level 10
   * Simplified debian/rules
+  * Added debian/orig-tar.sh to build the upstream tarball from SVN
 
  -- Emmanuel Bourg <ebourg at apache.org>  Tue, 16 May 2017 10:29:17 +0200
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..7c71c04
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+PACKAGE=$(dpkg-parsechangelog -S Source)
+VERSION=$2
+DIR=${PACKAGE}-${VERSION}
+TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
+TAG=maven-shared-utils-$VERSION
+
+svn export https://svn.apache.org/repos/asf/maven/shared/tags/$TAG/ $DIR
+tar -c -J -f $TAR $DIR
+rm -rf $DIR ../$TAG $3
diff --git a/debian/watch b/debian/watch
index d7840ef..d0beafb 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,3 @@
 version=3
 opts="uversionmangle=s/-(alpha|beta)-/~$1/" \
-  https://svn.apache.org/repos/asf/maven/shared/tags/ \
-  maven-shared-utils-(\d.*)/
+https://svn.apache.org/repos/asf/maven/shared/tags/ maven-shared-utils-(\d.*)/ debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list