diff options
Diffstat (limited to 'debian/update-patches.mk')
-rw-r--r-- | debian/update-patches.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/update-patches.mk b/debian/update-patches.mk new file mode 100644 index 000000000..55569f66a --- /dev/null +++ b/debian/update-patches.mk @@ -0,0 +1,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 |