[practicalxml-java] 06/09: Added a watch file

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Nov 3 07:44:50 UTC 2015


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

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

commit 916c0a636d2bd086f4d731e02da907c6b9f83ad0
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Nov 3 00:16:22 2015 +0100

    Added a watch file
---
 debian/changelog   |  1 +
 debian/orig-tar.sh | 12 ++++++++++++
 debian/rules       |  6 +-----
 debian/watch       |  2 ++
 4 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b2a0fa9..6666c69 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ practicalxml-java (1.1.17-2) UNRELEASED; urgency=medium
   * Standards-Version updated to 3.9.6 (no changes)
   * Moved the package to Git
   * Switch to debhelper level 9
+  * Added a watch file
 
  -- Emmanuel Bourg <ebourg at apache.org>  Tue, 03 Nov 2015 00:04:14 +0100
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..54015c3
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+PACKAGE=$(dpkg-parsechangelog -S Source)
+VERSION=$2
+DIR=${PACKAGE}-${VERSION}
+TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
+
+rm $3
+svn export svn://svn.code.sf.net/p/practicalxml/code/tags/rel-$VERSION $DIR
+XZ_OPT=--best tar -c -v -J -f $TAR $DIR
+rm -Rf $DIR
diff --git a/debian/rules b/debian/rules
index 8743aca..3a9d370 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,8 +6,4 @@ include /usr/share/cdbs/1/class/maven.mk
 JAVA_HOME := /usr/lib/jvm/default-java
 
 get-orig-source:
-	rm -rf practicalxml-$(DEB_UPSTREAM_VERSION)
-	echo "Exporting version $(DEB_UPSTREAM_VERSION), adapt changelog to change."
-	svn export svn://svn.code.sf.net/p/practicalxml/code/tags/rel-$(DEB_UPSTREAM_VERSION)  practicalxml-java-$(DEB_UPSTREAM_VERSION) 
-	tar cJvf practicalxml-java_$(DEB_UPSTREAM_VERSION).orig.tar.xz practicalxml-java-$(DEB_UPSTREAM_VERSION)
-
+	uscan --download-current-version --no-symlink --force-dowbload
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..465e413
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://sourceforge.net/p/practicalxml/code/HEAD/tree/tags/ rel-([\d\.]+) debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list