diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-12-13 20:12:40 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-12-13 20:12:40 +0000 |
commit | ef96e4d32e6108effa8697c22927894ea9f0631d (patch) | |
tree | 476b44525a2432bcf21369485359dcee6500059b /scripts/auto-build | |
parent | 0a05715553fbb3b3bc71017188722a825b5d2238 (diff) |
update remove_dead_svn_externals to work in MSYS when using Cygwin svn
svn path=/trunk/; revision=16685
Diffstat (limited to 'scripts/auto-build')
-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 |