From 264b4b3cab78cd8602280f2f00b5b46eade3a41b Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Tue, 26 Nov 2013 14:12:52 -0700 Subject: [PATCH] Allow separating patches into subfolders. --- debian/rules | 6 ++++-- generate-patchlist.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 7542e8db..a26a9d0b 100755 --- a/debian/rules +++ b/debian/rules @@ -64,8 +64,10 @@ ifneq "$(wildcard /usr/share/misc/config.guess)" "" endif # Apply our patches to Wine - for FILE in `ls $(CURDIR)/patches`; do \ - patch -N -p0 --strip=1 < $(CURDIR)/patches/$$FILE || exit 1; \ + for DIR in $(find $(CURDIR)/patches/ -type d | sort); do \ + for FILE in $(ls $$DIR | sort); do \ + patch -N -p0 --strip=1 < $$DIR/$$FILE || exit 1; \ + done done # Update the configure script diff --git a/generate-patchlist.sh b/generate-patchlist.sh index 5d435a84..68da88f0 100755 --- a/generate-patchlist.sh +++ b/generate-patchlist.sh @@ -1,7 +1,7 @@ #!/bin/sh PATCH_DATA=""; -for FILE in patches/*.patch; do +for FILE in patches/*.patch patches/*/*.patch; do MD5SUM=$(md5sum "${FILE}" | sed 's| .*||g'); AUTHOR=$(cat "${FILE}" | sed -n 's|From: \([^<]*\).*|\1|p' | sed -e 's|"||g' -e 's| $||g'); TITLE=$(cat "${FILE}" | sed -n '1!N; s|Subject: \(.*\)\n|\1|p');