[Pkg-telepathy-commits] [SCM] telepathy-sofiasip packaging branch, debian, updated. 004b2b281cc50452d437bb8a18dedc9c81a29e0e

Simon McVittie smcv at debian.org
Fri Dec 26 18:00:47 UTC 2008


The following commit has been merged in the debian branch:
commit 004b2b281cc50452d437bb8a18dedc9c81a29e0e
Author: Simon McVittie <smcv at debian.org>
Date:   Fri Dec 26 17:59:02 2008 +0000

    Add `debian/rules update-patches` and gbp.conf for Debian maintainers

diff --git a/debian/changelog b/debian/changelog
index b13d4d7..9339c6e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ telepathy-sofiasip (0.5.11-2) UNRELEASED; urgency=low
 
   * Move packaging to git
   * Add README.source
+  * Add `debian/rules update-patches` and gbp.conf for Debian maintainers
 
  -- Simon McVittie <smcv at debian.org>  Fri, 26 Dec 2008 17:56:00 +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 332781d..98f19bf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,3 +9,5 @@ include /usr/share/cdbs/1/rules/utils.mk
 common-binary-post-install-arch:: list-missing
 
 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-sofiasip packaging



More information about the Pkg-telepathy-commits mailing list