fbt 412 B

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