fbt 411 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -e
  3. SCRIPTDIR="$( dirname -- "$0"; )";
  4. SCONS_EP=${SCRIPTDIR}/lib/scons/scripts/scons.py
  5. if [[ -z "${FBT_NO_SYNC:-}" ]] ; then
  6. if [[ -d .git ]]; then
  7. git submodule update --init
  8. else
  9. echo Not in a git repo, please clone with git clone --recursive
  10. exit 1
  11. fi
  12. fi
  13. SCONS_DEFAULT_FLAGS="-Q --warn=target-not-built"
  14. python3 ${SCONS_EP} ${SCONS_DEFAULT_FLAGS} "$@"