diff options
-rw-r--r-- | build/build.mk | 5 | ||||
-rwxr-xr-x | cvsclean | 3 | ||||
-rwxr-xr-x | svnclean | 3 |
3 files changed, 8 insertions, 3 deletions
diff --git a/build/build.mk b/build/build.mk index 79b179c2e3..0e4f53eed5 100644 --- a/build/build.mk +++ b/build/build.mk @@ -70,4 +70,9 @@ cvsclean-work: (cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore | grep -v config.nice | sed 's/[[:space:]]/ /g'` *.o *.a .libs || true); \ 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); \ + done + .PHONY: $(ALWAYS) snapshot diff --git a/cvsclean b/cvsclean deleted file mode 100755 index 3d084df86f..0000000000 --- a/cvsclean +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/sh - -${MAKE:-make} -f build/build.mk cvsclean-work diff --git a/svnclean b/svnclean new file mode 100755 index 0000000000..0beda87ba4 --- /dev/null +++ b/svnclean @@ -0,0 +1,3 @@ +#! /bin/sh + +${MAKE:-make} -f build/build.mk svnclean-work |