aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/bin/utils/setup_skia_out.sh
blob: 78375a5cd7f6b55c68916f26a34792d29af51678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#

UTIL_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ -z "$SKIA_OUT" ]
then

    if [ ! -f .android_config ]
    then
        echo "Unable to find the .android_config file"
        exit 1;
    fi

    export SKIA_OUT=$(cat .android_config)
    
    if [ ! -d ${SKIA_OUT} ]
    then
        echo "The contents of .android_config are invalid"
        exit 1;
    fi
fi