File: update-patches.mk

package info (click to toggle)
mce-dev 1.5.6.debian-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 148 kB
  • ctags: 73
  • sloc: ansic: 70; makefile: 62
file content (12 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
update-patches:
	mkdir -p $(CURDIR)/debian/patches
	rm -f $(CURDIR)/debian/patches/*.patch
	rm -f $(CURDIR)/debian/patches/series
	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 ; \
		echo $$(basename $${patch}) >> $(CURDIR)/debian/patches/series ; \
	done