6 # sanity check in input args
7 if [ -z "$OLD" ] || [ -z "$NEW" ]; then
10 Changes the ADT plugin revision number.
13 scripts/update_version.sh 0.1.2 0.2.3
18 # sanity check on current dir
19 if [ `basename "$PWD"` != "eclipse" ]; then
20 echo "Please run this from tools/eclipse."
24 # quote dots for regexps
25 OLD="${OLD//./\.}\.qualifier"
26 NEW="${NEW//./\.}\.qualifier"
28 # Now find the same files but this time use sed to replace in-place with
29 # the new pattern. Old files get backuped with the .old extension.
30 grep -rl "$OLD" * | grep -E "\.xml$|\.MF$" | xargs -n 1 sed -i -e "s/$OLD/$NEW/g"