[Pkg-telepathy-commits] [SCM] libjingle0.3 packaging branch, debian, updated. 46dcbc416bfe87eef4412bdd3fc828ea9b01dea1
Simon McVittie
smcv at debian.org
Fri Dec 26 23:35:33 UTC 2008
The following commit has been merged in the debian branch:
commit e2c83b3a46a69c07db35379e3773e1bfe4d4d27e
Author: Simon McVittie <smcv at debian.org>
Date: Fri Dec 26 23:24:02 2008 +0000
Add `debian/rules update-patches` target
diff --git a/debian/changelog b/debian/changelog
index eb8d81d..99363e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ libjingle0.3 (0.3.12-3) UNRELEASED; urgency=low
* Move packaging to git
* Add gbp.conf for git-buildpackage
* Add README.source
+ * Add `debian/rules update-patches` target
-- Simon McVittie <smcv at debian.org> Fri, 26 Dec 2008 23:20:44 +0000
diff --git a/debian/rules b/debian/rules
index 5c833b6..9878e8d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,3 +21,5 @@ DEB_CONFIGURE_EXTRA_FLAGS := $(common_conf_flags)
DEB_INSTALL_DOCS_ALL += debian/README.Debian NEWS
.PHONY: maint
+
+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
--
libjingle0.3 packaging
More information about the Pkg-telepathy-commits
mailing list