Skip to content
Browse files

dropped some more mime types, svnclean -> clean for multiple VCS

  • Loading branch information...
1 parent f5980b7 commit 0a0a8e7866d8b058415734893c3202c599c247ee Gwynne Raskind committed Jul 16, 2009
Showing with 17 additions and 8 deletions.
  1. +6 −3 build/build.mk
  2. +0 −2 cvsclean.bat
  3. +0 −3 svnclean
  4. +11 −0 vcsclean
View
9 build/build.mk
@@ -45,7 +45,7 @@ $(STAMP): build/buildcheck.sh
snapshot:
distname='$(DISTNAME)'; \
if test -z "$$distname"; then \
- distname='php5-snapshot'; \
+ distname='php6-snapshot'; \
fi; \
myname=`basename \`pwd\`` ; \
cd .. && cp -rp $$myname $$distname; \
@@ -71,8 +71,11 @@ cvsclean-work:
done
svnclean-work:
- for i in `find . -type d -and -not -path '*/.svn/*'`; do \
- (cd `dirname $$i` 2>/dev/null && svn propget svn:ignore $i | xargs rm -rf && rm -rf *.o *.a .libs || true); \
+ @for i in `find . -type d -and -not -path '*/.svn/*'`; do \
+ (cd `dirname $$i` 2>/dev/null && svn propget svn:ignore $$i | xargs rm -rf && rm -rf *.o *.a .libs || true); \
done
+gitclean-work:
+ @echo "We don't know how to clean Git checkouts yet."
+
.PHONY: $(ALWAYS) snapshot
View
2 cvsclean.bat
@@ -1,2 +0,0 @@
-@echo off
-cscript /nologo win32\build\cvsclean.js
View
3 svnclean
@@ -1,3 +0,0 @@
-#! /bin/sh
-
-${MAKE:-make} -f build/build.mk svnclean-work
View
11 vcsclean
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+if test -d 'CVS'; then
+ ${MAKE:-make} -f build/build.mk cvsclean-work
+elif test -d '.svn'; then
+ ${MAKE:-make} -f build/build.mk svnclean-work
+elif test -d '.git'; then
+ ${MAKE:-make} -f build/build.mk gitclean-work
+else
+ echo "Can't figure out your VCS, not cleaning."
+fi

0 comments on commit 0a0a8e7

Please sign in to comment.
Something went wrong with that request. Please try again.