bbenv.include 480 B

123456789101112131415161718192021
  1. #might possible not run with each shell,
  2. #todo, test with zsh
  3. if [ "$BASH_SOURCE" = "$0" ] ; then
  4. echo "not running included!"
  5. echo "source this file to use it"
  6. exit 1
  7. fi
  8. bbplay_root_dir=$(dirname $(readlink -f "$BASH_SOURCE"))
  9. bitbake_root_dir=$bbplay_root_dir/bitbake
  10. if [ -d $bitbake_root_dir ] ; then
  11. export PATH=$bitbake_root_dir/bin:$PATH
  12. export PYTHONPATH=$bitbake_root_dir/lib:$PYHTONPATH
  13. else
  14. echo "ERROR: $bitbake_root_dir does not exist"
  15. fi