From d8ee1b032dafdbd2fbffea5c6cd11246ce595988 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Fri, 28 Oct 2011 11:58:52 -0700 Subject: Move tools and adt to 16 Change-Id: I79ae1bff5086146cc60b4496f4b0464ffd642651 --- eclipse/scripts/update_version.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'eclipse/scripts/update_version.sh') diff --git a/eclipse/scripts/update_version.sh b/eclipse/scripts/update_version.sh index c7198af..c73407a 100755 --- a/eclipse/scripts/update_version.sh +++ b/eclipse/scripts/update_version.sh @@ -2,6 +2,7 @@ OLD="$1" NEW="$2" +REALOLD="$1" # sanity check in input args if [ -z "$OLD" ] || [ -z "$NEW" ]; then @@ -29,3 +30,8 @@ NEW="${NEW//./\.}\.qualifier" # the new pattern. Old files get backuped with the .old extension. grep -rl "$OLD" * | grep -E "\.xml$|\.MF$" | xargs -n 1 sed -i -e "s/$OLD/$NEW/g" +# do another grep for older version without the qualifier. We don't +# want to replace those automatically as it could be something else. +# Printing out occurence helps find ones to update manually. +grep -rl "$REALOLD" * + -- cgit v1.1