diff options
author | David Soria Parra <dsp@php.net> | 2009-08-11 02:21:09 +0000 |
---|---|---|
committer | David Soria Parra <dsp@php.net> | 2009-08-11 02:21:09 +0000 |
commit | 495a5ab0057504b6719ee5be7462db8fa64a46f2 (patch) | |
tree | 8504889c08f3001e72c51fda7f4e555c0ebaded0 /build | |
parent | 5f962f0e3822709fe460e96755ee86bed8de9595 (diff) | |
download | php-git-495a5ab0057504b6719ee5be7462db8fa64a46f2.tar.gz |
Add actions for the gitclean target.
Diffstat (limited to 'build')
-rw-r--r-- | build/build.mk | 5 |
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 |