[Pkg-sugar-commit] [sugar-artwork] 02/04: Adapt packaging in maintainer mode when targeting experimental: Switch git packaging branch. Track any release (else only current branch).
Jonas Smedegaard
dr at jones.dk
Mon Jun 15 00:01:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository sugar-artwork.
commit fdc2ba09b15d4bb97746c7b5084eea8681f8f2de
Author: Jonas Smedegaard <dr at jones.dk>
Date: Sun Jun 14 18:30:19 2015 -0500
Adapt packaging in maintainer mode when targeting experimental: Switch git packaging branch. Track any release (else only current branch).
---
debian/gbp.conf | 1 +
debian/rules | 17 +++++++++++++++++
debian/watch | 2 +-
3 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/debian/gbp.conf b/debian/gbp.conf
index cd3fa3d..ab8b90f 100644
--- a/debian/gbp.conf
+++ b/debian/gbp.conf
@@ -1,6 +1,7 @@
# Configuration file for git-buildpackage and friends
[DEFAULT]
+debian-branch = master-0.104
pristine-tar = True
sign-tags = True
compression = xz
diff --git a/debian/rules b/debian/rules
index d41ad63..2f1d16c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,6 +33,23 @@ pkg = sugar-$(pkgbranch)-themes
pkg-icon = sugar-$(pkgbranch)-icon-theme
pkg-gtk2 = gtk2-engines-sugar-$(pkgbranch)
+# Adapt packaging in maintainer mode when targeting experimental branch:
+# * Switch git packaging branch
+# * Track any release (else only current branch)
+ifneq (,$(DEB_MAINTAINER_MODE))
+experimental := $(strip $(if \
+ $(shell dpkg-parsechangelog \
+ | grep -x 'Distribution: \(experimental\|UNRELEASED\)'),\
+ yes))
+watch-limit = $(if $(experimental),,$(pkgbranch)\\.)
+debian-branch = $(if $(experimental),master,master-$(pkgbranch))
+clean::
+ perl -i -pe 's/\([\d.\\]*\.\*\)/($(watch-limit).*)/' \
+ debian/watch
+ perl -i -pe 's/^debian-branch *= *\K.*/$(debian-branch)/' \
+ debian/gbp.conf
+endif
+
DEB_UPSTREAM_PACKAGE = $(DEB_SOURCE_PACKAGE:%-$(pkgbranch)=%)
DEB_UPSTREAM_URL = http://download.sugarlabs.org/sources/sucrose/glucose/$(DEB_UPSTREAM_PACKAGE)
DEB_UPSTREAM_TARBALL_EXTENSION = tar.xz
diff --git a/debian/watch b/debian/watch
index 32c6511..4a46c12 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
# run the "uscan" command to check for upstream updates and more.
version=3
-http://download.sugarlabs.org/sources/sucrose/glucose/sugar-artwork/sugar-artwork-(.*)\.tar\.(?:bz2|xz)
+http://download.sugarlabs.org/sources/sucrose/glucose/sugar-artwork/sugar-artwork-(0.104\..*)\.tar\.(?:bz2|xz)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-artwork.git
More information about the pkg-sugar-commit
mailing list