From 60a8b1f6fb27e54f64c5d85aaf51b94ae53fda19 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Tue, 11 Aug 2009 02:21:09 +0000 Subject: [PATCH] Add actions for the gitclean target. --- build/build.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.50.1