]> git.wh0rd.org Git - home.git/blob - .bin/cvs-cleanup
update cvs-cleanup
[home.git] / .bin / cvs-cleanup
1 #!/bin/bash
2 find -name .cvsignore -exec rm {} \;
3 cvs up -C | \
4         grep -v .cvsignore | \
5         egrep -v '^(U|P|\?|\()' | \
6         awk '{print $NF}' | \
7         grep -v cleanup >& cvsup
8 cat cvsup | xargs rm -vrf
9 find '(' -name '*~' -o -name '*.o' -o '.#*' ')' -print0 | xargs -0 rm -vf
10 cvs up > /dev/null
11 rm -f cvsup