Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: platform_tools/android/bin/android_setup.sh

Issue 255263002: adb_push_if_needed - make target directory if it does not exist. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # android_setup.sh: Sets environment variables used by other Android scripts. 3 # android_setup.sh: Sets environment variables used by other Android scripts.
4 4
5 # Fail-fast if anything in the script fails. 5 # Fail-fast if anything in the script fails.
6 set -e 6 set -e
7 7
8 BUILDTYPE=${BUILDTYPE-Debug} 8 BUILDTYPE=${BUILDTYPE-Debug}
9 9
10 while (( "$#" )); do 10 while (( "$#" )); do
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 else 215 else
216 HOST_MD5=`md5sum $HOST_SRC` 216 HOST_MD5=`md5sum $HOST_SRC`
217 fi 217 fi
218 218
219 if [ "${ANDROID_MD5:0:32}" != "${HOST_MD5:0:32}" ]; then 219 if [ "${ANDROID_MD5:0:32}" != "${HOST_MD5:0:32}" ]; then
220 echo -n "$ANDROID_DST " 220 echo -n "$ANDROID_DST "
221 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST 221 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST
222 fi 222 fi
223 else 223 else
224 echo -n "$ANDROID_DST " 224 echo -n "$ANDROID_DST "
225 $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")"
225 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST 226 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST
226 fi 227 fi
227 } 228 }
228 229
229 setup_device "${DEVICE_ID}" 230 setup_device "${DEVICE_ID}"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698