Home | History | Annotate | Download | only in bin
      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 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 	echo "seinfo is only supported on linux"
     15 	exit 1
     16 fi
     17