#!/bin/sh # svnCleanAllSvnFolders -- removes all .svn directories inside current directory. # # Created 2007 by Daniel Sadilek, made available in the public domain # if [ ! "$1" = "yes" ]; then echo "Usage: svnCleanAllSvnFolders yes" echo "Don't do anything but would do:" fi find . -name ".svn" -type d | while read i; do if [ -d "$i" ]; then echo rm -r \"$i\" if [ "$1" = "yes" ]; then rm -r "$i" fi fi done