[Pkg-golang-commits] [golang] 01/05: auto-generate debian/watch too
Michael Hudson-Doyle
mwhudson-guest at moszumanska.debian.org
Tue Jul 19 04:24:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
mwhudson-guest pushed a commit to branch golang-1.6
in repository golang.
commit 9b56e136e8fa2997291d3e452ec427baf2b229c2
Author: Michael Hudson-Doyle <michael.hudson at canonical.com>
Date: Tue Jul 19 14:58:27 2016 +1200
auto-generate debian/watch too
---
debian/rules | 5 +++++
debian/watch | 4 +++-
debian/{watch => watch.in} | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 516cae3..85cf397 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,6 +32,11 @@ gencontrol:
echo; \
sed -e 's/X\.Y/$(GOVER)/g' debian/gbp.conf.in; \
} > debian/gbp.conf
+ { \
+ echo '# WARNING: "debian/watch" is generated via "debian/rules gencontrol" (sourced from "debian/watch.in")'; \
+ echo; \
+ sed -e 's/X\.Y/$(GOVER)/g' debian/watch.in; \
+ } > debian/watch
override_dh_auto_clean: gencontrol
# remove autogenerated files
diff --git a/debian/watch b/debian/watch
index ac3b0f0..e37d1a4 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,6 @@
+# WARNING: "debian/watch" is generated via "debian/rules gencontrol" (sourced from "debian/watch.in")
+
version=3
opts=\
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/,\
- http://golang.org/dl/ .*/go(\d\S*)\.src\.tar\.gz
+ http://golang.org/dl/ .*/go(1.6\S*)\.src\.tar\.gz
diff --git a/debian/watch b/debian/watch.in
similarity index 63%
copy from debian/watch
copy to debian/watch.in
index ac3b0f0..1566c7c 100644
--- a/debian/watch
+++ b/debian/watch.in
@@ -1,4 +1,4 @@
version=3
opts=\
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/,\
- http://golang.org/dl/ .*/go(\d\S*)\.src\.tar\.gz
+ http://golang.org/dl/ .*/go(X.Y\S*)\.src\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-golang/golang.git
More information about the pkg-golang-commits
mailing list