push-and-run-debug 559 B

123456789101112131415161718
  1. #!/bin/bash
  2. # command line build script for installing and running terminal emulator.
  3. set -e
  4. if [ -z "${ANDROID_SDK_ROOT+xxx}" ]; then
  5. echo "Please define ANDROID_SDK_ROOT to point to the Android SDK"
  6. exit 1
  7. fi
  8. if [ ! -d "$ANDROID_SDK_ROOT" ]; then
  9. echo "The directory $ANDROID_SDK_ROOT = ${ANDROID_NDK_ROOT} does not exist."
  10. exit 1
  11. fi
  12. ADB="$ANDROID_SDK_ROOT/platform-tools/adb"
  13. $ADB uninstall jackpal.androidterm
  14. $ADB install -r term/build/outputs/apk/term-debug.apk && $ADB shell am start -n jackpal.androidterm/jackpal.androidterm.Term