Fix "make distclean" breaking svn.
Brought to you by:
bartoldeman
make distclean among other things does this:
rm -f core gen*.log find . -size 0
Currently the file src/doc/DANG/.svn/text-base/summary_Debugger.svn-base matches this (size 0), so make distclean consfuses svn:
svn: Can't open file 'src/doc/DANG/.svn/text-base/summary_Debugger.svn-base': No such file or directory
and one has to rm -rf srd/doc/DANG; svn update to fix this.
Attached patch prunes .svn directories. (Only in the "-size 0" find. It might be good idea to make all the find invocations skip those, to avoid any possibility of messing with svn. On the other hand the other criteria would probably never trigger in .svn directories, so maybe complicating the rules is not worth it.)
Fix make distclean.
Given the action of -prune, the trailing / in '/.svn/*' is suboptimal. Use this instead:
find . -path '*/.svn' -prune -o -size 0 -print
Now git is in use - do you think the similar
treatment is still needed?