[kdgcommons-java] 06/08: Added a watch file
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Nov 2 23:51:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository kdgcommons-java.
commit 7739d9ac8d6ad3135cbf9fc580d873f18a1c9524
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Nov 3 00:43:21 2015 +0100
Added a watch file
---
debian/changelog | 1 +
debian/orig-tar.sh | 12 ++++++++++++
debian/rules | 6 +-----
debian/watch | 3 +++
4 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 678e5be..7fc983b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ kdgcommons-java (1.0.13-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:24:17 +0100
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..077d3fb
--- /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/kdgcommons/code/tags/rel_$(echo $VERSION | tr '.' '_') $DIR
+XZ_OPT=--best tar -c -v -J -f $TAR $DIR
+rm -Rf $DIR
diff --git a/debian/rules b/debian/rules
index e403351..1644da7 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:
- U=$(shell echo $(DEB_UPSTREAM_VERSION) | tr '.' '_') && \
- echo "Downloading tag 'rel_$$U', change debian/changelog to adapt" && \
- rm -rf "kdgcommons-java-$(DEB_UPSTREAM_VERSION)" && \
- svn export "svn://svn.code.sf.net/p/kdgcommons/code/tags/rel_$$U" "kdgcommons-java-$(DEB_UPSTREAM_VERSION)"
- tar cJvf "kdgcommons-java_$(DEB_UPSTREAM_VERSION).orig.tar.xz" "kdgcommons-java-$(DEB_UPSTREAM_VERSION)"
+ uscan --download-current-version --no-symlink --force-download
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..62cc773
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/_/./g \
+https://sourceforge.net/p/kdgcommons/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/kdgcommons-java.git
More information about the pkg-java-commits
mailing list