allwinner_a64/android/external/selinux/prebuilts/bin/sediff
2018-08-08 16:14:42 +08:00

15 lines
438 B
Bash
Executable file

#!/bin/sh
if [ -z "${ANDROID_BUILD_TOP}" ]; then
echo 'ANDROID_BUILD_TOP not set. Have you run lunch?'
exit 1
fi
unamestr=`uname`
if [ "$unamestr" = "Linux" -o "$unamestr" = "linux" ]; then
export PYTHONPATH=$ANDROID_BUILD_TOP/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages
python $ANDROID_BUILD_TOP/external/selinux/prebuilts/bin/sediff.py "$@"
else
echo "sediff is only supported on linux"
exit 1
fi