From: Nicholas Clark Date: Tue, 29 Sep 2009 18:40:05 +0000 (+0100) Subject: Recursively delete all ppport.h files, instead of running mkppport --clean. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0d4cbbcf1b1e4309cffb93672b4f73f35e172ae0;p=p5sagit%2Fp5-mst-13.2.git Recursively delete all ppport.h files, instead of running mkppport --clean. mkppport --clean relies on miniperl not yet being deleted, which doesn't always hold. Idea blatently stolen from Steve Hay's commit 85741d00cbd04edb. --- diff --git a/Makefile.SH b/Makefile.SH index 7e6a099..b2d4d15 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -1226,7 +1226,10 @@ _cleaner1: sh $(CLEAN).sh ; \ fi rm -f realclean.sh veryclean.sh - -@test ! -f ./$(MINIPERL_EXE) || $(MINIPERL) mkppport --clean + -for file in `find cpan dist ext -name ppport.h` ; do rm -f $$file; done + +# Dear POSIX, thanks for making the default to xargs to be +# run once if nothhing is passed in. It is such a great help. # Some systems do not support "?", so keep these files separate. _cleaner2: