diff options
author | Raphael Moll <ralf@android.com> | 2014-06-17 16:42:47 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2014-06-17 16:42:47 +0000 |
commit | fcde50d77eecf2296f3813ed60154f48ab2f6d03 (patch) | |
tree | 74171c3a1ae4b745f7ab296a3017769ac4d7c41f /eclipse/scripts | |
parent | e5667bc0b3b33566f0b3640ab09b4932751fea3d (diff) | |
parent | 00b0604e22925652b862354623ad99535b52d64e (diff) | |
download | sdk-fcde50d77eecf2296f3813ed60154f48ab2f6d03.zip sdk-fcde50d77eecf2296f3813ed60154f48ab2f6d03.tar.gz sdk-fcde50d77eecf2296f3813ed60154f48ab2f6d03.tar.bz2 |
Merge changes I976cd490,I1833fcca into idea133
automerge: 00b0604
* commit '00b0604e22925652b862354623ad99535b52d64e':
Update ADT plugins/features version number.
Adapt script to change ADT plugins/features number to p2repo.
Update Tools package revision number.
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" |