dcdd57faf0
This CL is the first step in a series needed to move the android directory into trunk. After the copy we will update GYP and DEPS to point to the new location and only then remove the original directory. git-svn-id: http://skia.googlecode.com/svn/trunk@8891 2bbb7eff-a529-9590-31e7-b0007b416f81
17 lines
466 B
Bash
Executable File
17 lines
466 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# android_kill_skia: kills any skia processes on the device.
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
source $SCRIPT_DIR/utils/setup_adb.sh
|
|
|
|
if [ $(uname) == "Linux" ]; then
|
|
$ADB shell ps | grep skia | awk '{print $2}' | xargs -r $ADB shell kill
|
|
elif [ $(uname) == "Darwin" ]; then
|
|
$ADB shell ps | grep skia | awk '{print $2}' | xargs $ADB shell kill
|
|
else
|
|
echo "Could not automatically determine OS!"
|
|
exit 1;
|
|
fi
|