aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2014-06-17 16:42:47 +0000
committerandroid-build-merger <android-build-merger@google.com>2014-06-17 16:42:47 +0000
commitfcde50d77eecf2296f3813ed60154f48ab2f6d03 (patch)
tree74171c3a1ae4b745f7ab296a3017769ac4d7c41f /eclipse/scripts
parente5667bc0b3b33566f0b3640ab09b4932751fea3d (diff)
parent00b0604e22925652b862354623ad99535b52d64e (diff)
downloadsdk-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-xeclipse/scripts/update_version.sh11
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"