Allow separating patches into subfolders.

This commit is contained in:
Erich E. Hoover 2013-11-26 14:12:52 -07:00
parent e63f3b7958
commit 264b4b3cab
2 changed files with 5 additions and 3 deletions

6
debian/rules vendored
View File

@ -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

View File

@ -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');