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