Codebase list empathy / debian/3.3.90.2-1 debian / update-patches.mk
debian/3.3.90.2-1

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

update-patches.mk @debian/3.3.90.2-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 | \
		xargs -n 1 basename > $(CURDIR)/debian/patches/series
	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