File: update-patches.mk

package info (click to toggle)
gupnp-igd 0.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,160 kB
  • sloc: sh: 4,393; ansic: 1,991; xml: 1,059; makefile: 177
file content (10 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (28)
1
2
3
4
5
6
7
8
9
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