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