fbt 445 B

123456789101112131415161718
  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. echo Updating git submodules
  7. git submodule update --init
  8. else # Not in a git repo
  9. echo Not in a git repo, please clone with git clone --recursive
  10. # Return error code 1 to indicate failure
  11. exit 1
  12. fi
  13. SCONS_DEFAULT_FLAGS="-Q --warn=target-not-built"
  14. python3 ${SCONS_EP} ${SCONS_DEFAULT_FLAGS} "$@"