From: David Soria Parra Date: Tue, 11 Aug 2009 02:21:09 +0000 (+0000) Subject: Add actions for the gitclean target. X-Git-Tag: php-5.2.11RC1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60a8b1f6fb27e54f64c5d85aaf51b94ae53fda19;p=php Add actions for the gitclean target. --- diff --git a/build/build.mk b/build/build.mk index c8132d5760..5aebae1a1a 100644 --- a/build/build.mk +++ b/build/build.mk @@ -73,6 +73,9 @@ svnclean-work: done gitclean-work: - @echo "We don't know how to clean Git checkouts yet." + @if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \ + (echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \ + fi; \ + git clean -X -f -d; .PHONY: $(ALWAYS) snapshot