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