summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorDavid Soria Parra <dsp@php.net>2009-08-11 02:21:09 +0000
committerDavid Soria Parra <dsp@php.net>2009-08-11 02:21:09 +0000
commit495a5ab0057504b6719ee5be7462db8fa64a46f2 (patch)
tree8504889c08f3001e72c51fda7f4e555c0ebaded0 /build
parent5f962f0e3822709fe460e96755ee86bed8de9595 (diff)
downloadphp-git-495a5ab0057504b6719ee5be7462db8fa64a46f2.tar.gz
Add actions for the gitclean target.
Diffstat (limited to 'build')
-rw-r--r--build/build.mk5
1 files changed, 4 insertions, 1 deletions
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