3 #=======================================================================
5 # File ID: b45d981c-5d41-11df-ac4e-90e6ba3022ac
6 # Reads a bunch of filenames from stdin or files specified on the
7 # command line and strips .svn directories away. Examples:
9 # Really clean up the working copy:
10 # cd /top/of/working/copy
11 # find . -type f | nosvn | xargs rm
13 # Show the size of the working copy without the .svn directories:
15 # find . -type f | nosvn | xargs wc -c
17 # Specifying -r (for reverse) as the first parameter lists only .svn
18 # directories and their contents.
19 #=======================================================================
21 if [ "$1" = "-r" ]; then
23 cat $
* |
egrep '/\.svn(/|$)'
25 cat $
* |
egrep -v '/\.svn(/|$)'