From fa1af0292d29db65362e0ca32858bc2a60106654 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 21 Sep 2012 20:01:50 +0000 Subject: a little closer to a working script for removing defunct svn:externals svn path=/trunk/; revision=16261 --- scripts/auto-build/auto-build-common | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts/auto-build/auto-build-common') diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common index 9a970790..4af85710 100644 --- a/scripts/auto-build/auto-build-common +++ b/scripts/auto-build/auto-build-common @@ -106,13 +106,11 @@ remove_dead_svn_externals() { 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 + for external in `$svn status --no-ignore "$1" | 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" - else - echo "not removing $external" fi done } -- cgit v1.2.1