Codebase list telepathy-glib / debian/0.11.4-1 debian / update-patches.mk
debian/0.11.4-1

Tree @debian/0.11.4-1 (Download .tar.gz)

update-patches.mk @debian/0.11.4-1raw · history · blame

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