aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-02-10 15:18:59 -0800
committerXavier Ducrohet <xav@android.com>2011-02-10 15:18:59 -0800
commit040afb495e9f5ca27bbbdcc2f4316ac1738d5e26 (patch)
tree98891c330c107255db6f7bbe3997597c47ed0093 /eclipse/scripts
parent66271faf9d99562c7a44b4b5601fd762772648ee (diff)
downloadsdk-040afb495e9f5ca27bbbdcc2f4316ac1738d5e26.zip
sdk-040afb495e9f5ca27bbbdcc2f4316ac1738d5e26.tar.gz
sdk-040afb495e9f5ca27bbbdcc2f4316ac1738d5e26.tar.bz2
Move tools and ADT version to 11.
Change-Id: I4ba19e12a7d11df3d3c1053c30f3998a93b5fb06
Diffstat (limited to 'eclipse/scripts')
-rwxr-xr-x[-rw-r--r--]eclipse/scripts/update_version.sh12
1 files changed, 3 insertions, 9 deletions
diff --git a/eclipse/scripts/update_version.sh b/eclipse/scripts/update_version.sh
index a288965..c7198af 100644..100755
--- a/eclipse/scripts/update_version.sh
+++ b/eclipse/scripts/update_version.sh
@@ -22,16 +22,10 @@ if [ `basename "$PWD"` != "eclipse" ]; then
fi
# quote dots for regexps
-OLD="${OLD//./\.}"
-NEW="${NEW//./\.}"
-
-# Find all the files with the old pattern, except changes.txt and
-# p4 edit them. Skip that if there's no p4 in path.
-if which g4 1>/dev/null 2>/dev/null ; then
- grep -rl "$OLD" * | grep -E "\.xml$|\.MF$" | xargs -n 5 g4 edit
-fi
+OLD="${OLD//./\.}\.qualifier"
+NEW="${NEW//./\.}\.qualifier"
# Now find the same files but this time use sed to replace in-place with
# the new pattern. Old files get backuped with the .old extension.
-grep -rl "$OLD" * | grep -E "\.xml$|\.MF$" | xargs -n 1 sed -i.old "s/$OLD/$NEW/g"
+grep -rl "$OLD" * | grep -E "\.xml$|\.MF$" | xargs -n 1 sed -i -e "s/$OLD/$NEW/g"