Add gbp.conf (for git-buildpackage) and `debian/rules update-patches` target
Simon McVittie
15 years ago
0 | 0 |
empathy (2.25.3-2) UNRELEASED; urgency=low
|
1 | 1 |
|
2 | 2 |
* Switch packaging to git
|
|
3 |
* Add gbp.conf (for git-buildpackage) and `debian/rules update-patches`
|
|
4 |
target
|
3 | 5 |
|
4 | 6 |
-- Simon McVittie <smcv@debian.org> Fri, 02 Jan 2009 21:33:26 +0000
|
5 | 7 |
|
|
0 |
[DEFAULT]
|
|
1 |
debian-branch = debian
|
|
2 |
upstream-branch = upstream
|
|
3 |
pristine-tar = True
|
|
4 |
|
|
5 |
[git-buildpackage]
|
|
6 |
tarball-dir = ../tarballs/
|
|
7 |
export-dir = ../build-area/
|
|
8 |
no-create-orig = True
|
21 | 21 |
|
22 | 22 |
binary-install/python-empathy::
|
23 | 23 |
dh_pysupport -p$(cdbs_curpkg)
|
|
24 |
|
|
25 |
include $(CURDIR)/debian/update-patches.mk
|
|
0 |
update-patches:
|
|
1 |
mkdir -p $(CURDIR)/debian/patches
|
|
2 |
rm -f $(CURDIR)/debian/patches/*.patch
|
|
3 |
git-format-patch -o $(CURDIR)/debian/patches debian-patches ^upstream
|
|
4 |
for patch in $$(ls $(CURDIR)/debian/patches/*.patch) ; \
|
|
5 |
do \
|
|
6 |
lines=$$(cat $$patch | wc -l) ; \
|
|
7 |
head -n $$(($$lines - 3)) $$patch > $${patch}.chomped ; \
|
|
8 |
mv $${patch}.chomped $$patch ; \
|
|
9 |
done
|