Created
June 28, 2010 10:25
-
-
Save fnordfish/455680 to your computer and use it in GitHub Desktop.
Simple Bash-Script to recursive search a svn working copy for directories using externals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# This script searches a SVN working copy for all directories having externals | |
start_dir=. | |
if [ $1 ]; then | |
start_dir=$1 | |
fi | |
for f in $( find $start_dir -type d | grep -v .svn ) | |
do | |
svn pl $f 2>/dev/null | grep "svn:externals" > /dev/null 2>&1 | |
if [ "$?" -eq "0" ] | |
then | |
echo -e "$f" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment