[Pkg-telepathy-commits] [SCM] telepathy-stream-engine packaging branch, debian, updated. 1b09abcd55532bed86c74e5c04f17ca4fd70aa32
Simon McVittie
smcv at debian.org
Fri Dec 26 17:44:41 UTC 2008
The following commit has been merged in the debian branch:
commit 1b09abcd55532bed86c74e5c04f17ca4fd70aa32
Author: Simon McVittie <smcv at debian.org>
Date: Fri Dec 26 17:40:26 2008 +0000
Add `update-patches` target and gbp.conf for Debian maintainers
diff --git a/debian/changelog b/debian/changelog
index 4f6a359..676059d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ telepathy-stream-engine (0.5.3-2) UNRELEASED; urgency=low
* Switch packaging to git
* Standards-Version: 3.8.0 (add README.source)
+ * Add `update-patches` target and gbp.conf for Debian maintainers
-- Simon McVittie <smcv at debian.org> Fri, 26 Dec 2008 17:33:05 +0000
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..2923ad3
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,9 @@
+[DEFAULT]
+debian-branch = debian
+upstream-branch = upstream
+pristine-tar = True
+
+[git-buildpackage]
+tarball-dir = ../tarballs/
+export-dir = ../build-area/
+no-create-orig = True
diff --git a/debian/rules b/debian/rules
index db43148..79dabb9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,3 +10,5 @@ common-binary-post-install-arch:: list-missing
# cdbs defaults to one subdirectory per source package, which is overkill for us
DEB_CONFIGURE_LIBEXECDIR := "\$${prefix}/lib/telepathy"
+
+include $(CURDIR)/debian/update-patches.mk
diff --git a/debian/update-patches.mk b/debian/update-patches.mk
new file mode 100644
index 0000000..298c5b3
--- /dev/null
+++ b/debian/update-patches.mk
@@ -0,0 +1,10 @@
+update-patches:
+ mkdir -p $(CURDIR)/debian/patches
+ rm -f $(CURDIR)/debian/patches/*.patch
+ git-format-patch -o $(CURDIR)/debian/patches debian-patches ^upstream
+ for patch in $$(ls $(CURDIR)/debian/patches/*.patch) ; \
+ do \
+ lines=$$(cat $$patch | wc -l) ; \
+ head -n $$(($$lines - 3)) $$patch > $${patch}.chomped ; \
+ mv $${patch}.chomped $$patch ; \
+ done
--
telepathy-stream-engine packaging
More information about the Pkg-telepathy-commits
mailing list