diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/auto-build/auto-build-common | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common index d3fa2790..10f39d96 100644 --- a/scripts/auto-build/auto-build-common +++ b/scripts/auto-build/auto-build-common @@ -108,13 +108,14 @@ find_svn() remove_dead_svn_externals() { + cd "$1" svn=$(find_svn) - svn_externals=`$svn propget -R svn:externals "$1" | sed 's|^.* - ||' | awk '{print $1}'` - for external in `$svn status --no-ignore "$1" | grep '^[X]' | awk '{print $2}'`; do + svn_externals=`$svn propget -R svn:externals . | sed 's|^.* - ||' | awk '{print $1}'` + for external in `$svn status --no-ignore . | grep '^[X]' | awk '{print $2}'`; do name=$(basename $external) if [ -z "$(echo $svn_externals | grep $name)" ]; then - echo "Removing defunct svn:external '$name' at '$external'" - echo rm -rf "$external" + echo "TODO: remove defunct svn:external '$name' at '$external'" + $svn revert -R "$external" $svn update "$external" fi done |