aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/bin/adb_print_path
diff options
context:
space:
mode:
authorGravatar djsollen <djsollen@google.com>2014-10-29 12:59:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-29 12:59:50 -0700
commitc96aa64246bcd0e93cda16d4d0358345515cbfd5 (patch)
tree4663a3f7a3fee151508f1a0ff9a1957ba6eabe4a /platform_tools/android/bin/adb_print_path
parent7316b100dfd2a0f9553e7f1e9f3a5f4c46b8e4db (diff)
Add a helper script to expose which version of adb the android scripts use.
Diffstat (limited to 'platform_tools/android/bin/adb_print_path')
-rwxr-xr-xplatform_tools/android/bin/adb_print_path12
1 files changed, 12 insertions, 0 deletions
diff --git a/platform_tools/android/bin/adb_print_path b/platform_tools/android/bin/adb_print_path
new file mode 100755
index 0000000000..4067f04c0e
--- /dev/null
+++ b/platform_tools/android/bin/adb_print_path
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# adb_print_path: prints the path to the copy of adb that will be used by Skia's
+# android scripts. This is used by Skia's build infrastructure to ensure that
+# we use the same adb revision (and instance).
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+source $SCRIPT_DIR/android_setup.sh
+source $SCRIPT_DIR/utils/setup_adb.sh
+
+echo $ADB
+exit 0