[latexdraw] 45/147: * updated watch file * get-orig-source target to use watch file
Stuart Prescott
stuart at debian.org
Thu Nov 24 23:53:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
stuart pushed a commit to branch master
in repository latexdraw.
commit 89ccd3d2456796e0056e330b853120bd06377cfc
Author: Stuart Prescott <stuart at debian.org>
Date: Mon Apr 20 22:25:00 2009 +0000
* updated watch file
* get-orig-source target to use watch file
---
debian/rules | 15 ++++++++++++++-
debian/watch | 1 +
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index f860dbc..5c1c883 100755
--- a/debian/rules
+++ b/debian/rules
@@ -70,4 +70,17 @@ binary-indep: build install
dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+
+# Be explicit given that there is plenty of confusion about what this target means
+get-orig-source: get-latest-source
+
+get-latest-source:
+ cd $(dir $_).. && \
+ uscan=$$(uscan --report --dehs --upstream-version 0) && \
+ uver=$$(echo "$$uscan" | sed -n 's,<upstream-version>\(.*\)</.*>,\1,p') && \
+ uurl=$$(echo "$$uscan" | sed -n 's,<upstream-url>\(.*\)</.*>,\1,p') && \
+ echo debian/repackage --upstream-version "$${uver}" "$${uurl}" $(CURDIR) &&\
+ sh debian/repackage --upstream-version "$${uver}" "$${uurl}" $(CURDIR)
+
+
+.PHONY: build clean binary-indep binary-arch binary install get-orig-source get-latest-source
diff --git a/debian/watch b/debian/watch
index a01115d..5f0f51c 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,6 +1,7 @@
# Compulsory line, this is a version 3 file
version=3
+opts="dversionmangle=s/\+\d+$//" \
http://sf.net/latexdraw/LaTeXDraw(.*)_src\.zip \
debian \
debian/repackage
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/latexdraw.git
More information about the pkg-java-commits
mailing list