]> granicus.if.org Git - php/commitdiff
MFB: cvsclean -> svnclean
authorGwynne Raskind <gwynne@php.net>
Sun, 12 Jul 2009 21:51:28 +0000 (21:51 +0000)
committerGwynne Raskind <gwynne@php.net>
Sun, 12 Jul 2009 21:51:28 +0000 (21:51 +0000)
build/build.mk
cvsclean [deleted file]
svnclean [new file with mode: 0755]

index 79b179c2e3e992f75a3622b5be9f49c03d636a59..0e4f53eed56747b3988f356a430438e001e5966a 100644 (file)
@@ -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 (executable)
index 3d084df..0000000
--- 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 (executable)
index 0000000..0beda87
--- /dev/null
+++ b/svnclean
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+${MAKE:-make} -f build/build.mk svnclean-work