diff options
author | Raphael Moll <ralf@android.com> | 2014-06-13 12:34:11 -0700 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2014-06-13 12:34:11 -0700 |
commit | 19d6b131df06fb492fbfd6953cbb0300084a7684 (patch) | |
tree | f6b9f51b7cf73258378d8e37fa674596348c6caf /eclipse/scripts | |
parent | bdc681e367281b20b5ab572bade38fd66fb9ca86 (diff) | |
download | sdk-19d6b131df06fb492fbfd6953cbb0300084a7684.zip sdk-19d6b131df06fb492fbfd6953cbb0300084a7684.tar.gz sdk-19d6b131df06fb492fbfd6953cbb0300084a7684.tar.bz2 |
Adapt script to change ADT plugins/features number to p2repo.
Change-Id: I1833fccaa56199326da420cca491662083a4d13b
Diffstat (limited to 'eclipse/scripts')
-rwxr-xr-x | eclipse/scripts/update_version.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/eclipse/scripts/update_version.sh b/eclipse/scripts/update_version.sh index 04c81d3..d3b71b1 100755 --- a/eclipse/scripts/update_version.sh +++ b/eclipse/scripts/update_version.sh @@ -9,7 +9,7 @@ if [ -z "$OLD" ] || [ -z "$NEW" ]; then Usage: $0 <old> <new> Changes the ADT plugin revision number. Example: - cd tools/eclipse + cd sdk/eclipse scripts/update_version.sh 0.1.2 0.2.3 EOF exit 1 @@ -17,7 +17,7 @@ fi # sanity check on current dir if [ `basename "$PWD"` != "eclipse" ]; then - echo "Please run this from tools/eclipse." + echo "Please run this from sdk/eclipse." exit 1 fi @@ -46,7 +46,7 @@ function replace() { SED_OLD="${OLD//./\.}\.qualifier" SED_NEW="${NEW//./\.}\.qualifier" -for i in $(grep -rl "$OLD" * | grep -E "\.xml$|\.MF$"); do +for i in $(grep -rl "$OLD" * | grep -E "\.xml$|\.MF$|\.product$"); do if [[ -f "$i" && $(basename "$i") != "build.xml" ]]; then replace "$i" fi @@ -55,9 +55,12 @@ done # ---2--- Change unqualified version numbers in specific files SED_OLD="${OLD//./\.}" SED_NEW="${NEW//./\.}" -for i in plugins/com.android.ide.eclipse.adt.package/ide.product \ +for i in artifacts/*/pom.xml \ + plugins/com.android.ide.eclipse.adt.package/ide.product \ plugins/com.android.ide.eclipse.monitor/monitor.product \ plugins/com.android.ide.eclipse.monitor/plugin.properties \ + plugins/com.android.ide.eclipse.*/pom.xml \ + features/com.android.ide.eclipse.*/pom.xml \ features/com.android.ide.eclipse.adt.package/feature.xml ; do if grep -qs "$OLD" "$i"; then replace "$i" |