diff options
author | Xavier Ducrohet <xav@android.com> | 2011-10-28 11:58:52 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-10-28 11:58:52 -0700 |
commit | d8ee1b032dafdbd2fbffea5c6cd11246ce595988 (patch) | |
tree | 0d902b2b221bbc9c0a636e260c442efd8441258a /eclipse/scripts/update_version.sh | |
parent | 16ed545d6175d2afde14b9585eed1feb28ce6364 (diff) | |
download | sdk-d8ee1b032dafdbd2fbffea5c6cd11246ce595988.zip sdk-d8ee1b032dafdbd2fbffea5c6cd11246ce595988.tar.gz sdk-d8ee1b032dafdbd2fbffea5c6cd11246ce595988.tar.bz2 |
Move tools and adt to 16
Change-Id: I79ae1bff5086146cc60b4496f4b0464ffd642651
Diffstat (limited to 'eclipse/scripts/update_version.sh')
-rwxr-xr-x | eclipse/scripts/update_version.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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" * + |