dsp                                      Tue, 11 Aug 2009 02:21:09 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=287074

Log:
Add actions for the gitclean target.

Changed paths:
    U   php/php-src/branches/PHP_5_2/build/build.mk
    U   php/php-src/branches/PHP_5_3/build/build.mk
    U   php/php-src/trunk/build/build.mk

Modified: php/php-src/branches/PHP_5_2/build/build.mk
===================================================================
--- php/php-src/branches/PHP_5_2/build/build.mk 2009-08-11 02:15:17 UTC (rev 
287073)
+++ php/php-src/branches/PHP_5_2/build/build.mk 2009-08-11 02:21:09 UTC (rev 
287074)
@@ -73,6 +73,9 @@
        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

Modified: php/php-src/branches/PHP_5_3/build/build.mk
===================================================================
--- php/php-src/branches/PHP_5_3/build/build.mk 2009-08-11 02:15:17 UTC (rev 
287073)
+++ php/php-src/branches/PHP_5_3/build/build.mk 2009-08-11 02:21:09 UTC (rev 
287074)
@@ -73,6 +73,9 @@
        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

Modified: php/php-src/trunk/build/build.mk
===================================================================
--- php/php-src/trunk/build/build.mk    2009-08-11 02:15:17 UTC (rev 287073)
+++ php/php-src/trunk/build/build.mk    2009-08-11 02:21:09 UTC (rev 287074)
@@ -73,6 +73,9 @@
        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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to