diff options
-rw-r--r-- | build/build.mk | 7 | ||||
-rwxr-xr-x | cvsclean.bat | 2 | ||||
-rwxr-xr-x | svnclean | 3 | ||||
-rwxr-xr-x | vcsclean | 11 |
4 files changed, 16 insertions, 7 deletions
diff --git a/build/build.mk b/build/build.mk index b333b38485..91143cb1f7 100644 --- a/build/build.mk +++ b/build/build.mk @@ -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 diff --git a/cvsclean.bat b/cvsclean.bat deleted file mode 100755 index 4c0118d671..0000000000 --- a/cvsclean.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -cscript /nologo win32\build\cvsclean.js diff --git a/svnclean b/svnclean deleted file mode 100755 index 0beda87ba4..0000000000 --- a/svnclean +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/sh - -${MAKE:-make} -f build/build.mk svnclean-work diff --git a/vcsclean b/vcsclean new file mode 100755 index 0000000000..e1004e4349 --- /dev/null +++ b/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 |