You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
517 B
17 lines
517 B
#!/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 LD_LIBRARY_PATH=$ANDROID_BUILD_TOP/external/selinux/prebuilts/lib
|
|
export PYTHONPATH=$ANDROID_BUILD_TOP/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages
|
|
exec python $ANDROID_BUILD_TOP/external/selinux/prebuilts/bin/seinfo.py "$@"
|
|
else
|
|
echo "seinfo is only supported on linux"
|
|
exit 1
|
|
fi
|