]> git.wh0rd.org - home.git/blobdiff - .bin/cvs-cleanup
gdbinit: split up & migrate some to python
[home.git] / .bin / cvs-cleanup
index bd6545c070565ba92fb40c6ecc34d3216f6aa023..56bca49b1a9da910a2ca905adfaba70f4ca57e17 100755 (executable)
@@ -1,11 +1,10 @@
 #!/bin/bash
 find -name .cvsignore -exec rm {} \;
-cvs up -C | \
-       grep -v .cvsignore | \
-       egrep -v '^(U|P|\?|\()' | \
+cvs up -C -I'!' | \
+       grep -v -e .cvsignore -e '^[UP(]' | \
        awk '{print $NF}' | \
        grep -v cleanup >& cvsup
 cat cvsup | xargs rm -vrf
-find '(' -name '*~' -o -name '*.o' -o '.#*' ')' -print0 | xargs -0 rm -vf
+find '(' -name '*~' -o -name '*.o' -o -name '.#*' ')' -print0 | xargs -0 rm -vf
 cvs up > /dev/null
 rm -f cvsup