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