From 4a69f63a78736b3cdcb29abf320dda33edd9e7a4 Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Fri, 7 Feb 2014 20:51:20 -0700 Subject: [PATCH] Output the progress of the patching process. --- patches/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/patches/Makefile b/patches/Makefile index ee589585..1c00af1d 100644 --- a/patches/Makefile +++ b/patches/Makefile @@ -2,7 +2,9 @@ install: # Apply our patches to Wine for DIR in $$(find $(CURDIR) -type d | sort); do \ for FILE in $$(ls $$DIR | sort | grep '\.patch$$'); do \ - patch -d $(DESTDIR) -N -p0 --strip=1 < $$DIR/$$FILE || exit 1; \ + SHORTNAME=$$(echo "$$DIR/$$FILE" | sed 's|$(CURDIR)|\.|g' ); \ + printf "Applying patch '$$SHORTNAME'...\n"; \ + patch -d $(DESTDIR) -N -p0 --strip=1 < $$DIR/$$FILE || cat || exit 1; \ done \ done @@ -16,6 +18,8 @@ uninstall: # Remove our patches from Wine for DIR in $$(find $(CURDIR) -type d | sort -r); do \ for FILE in $$(ls $$DIR | sort -r | grep '\.patch$$'); do \ + SHORTNAME=$$(echo "$$DIR/$$FILE" | sed 's|$(CURDIR)|\.|g' ); \ + printf "Reversing patch '$$SHORTNAME'...\n"; \ patch -d $(DESTDIR) -R -N -p0 --strip=1 < $$DIR/$$FILE || exit 1; \ done \ done