[Pkg-telepathy-commits] [SCM] gst-plugins-farsight packaging branch, debian, updated. 232659202a69647bc351558800bb8e6d47ff04ca
Simon McVittie
smcv at debian.org
Fri Dec 26 21:46:23 UTC 2008
The following commit has been merged in the debian branch:
commit 232659202a69647bc351558800bb8e6d47ff04ca
Author: Simon McVittie <smcv at debian.org>
Date: Fri Dec 26 21:43:14 2008 +0000
Add `debian/rules update-patches` target
diff --git a/debian/changelog b/debian/changelog
index 34855c1..8b248a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ gst-plugins-farsight (0.12.10-2) UNRELEASED; urgency=low
* Move packaging to git
* Add debian/gbp.conf for git-buildpackage
* Add README.source
+ * Add `debian/rules update-patches` target
-- Simon McVittie <smcv at debian.org> Fri, 26 Dec 2008 20:34:11 +0000
diff --git a/debian/rules b/debian/rules
index 974b027..5dfd709 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,3 +14,5 @@ common-binary-post-install-arch:: list-missing
binary-post-install/gstreamer0.10-plugins-farsight::
dh_gstscancodecs
rm -rf debian/*/usr/lib/gstreamer-0.10/*.la
+
+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
--
gst-plugins-farsight packaging
More information about the Pkg-telepathy-commits
mailing list