fbt 584 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # shellcheck disable=SC2086 source=/dev/null
  3. # unofficial strict mode
  4. set -eu;
  5. SCONS_DEFAULT_FLAGS="-Q --warn=target-not-built";
  6. SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd -P)";
  7. if [ -z "${FBT_NOENV:-}" ]; then
  8. . "$SCRIPT_PATH/scripts/toolchain/fbtenv.sh";
  9. fi
  10. if [ -z "${FBT_NO_SYNC:-}" ]; then
  11. if [ ! -d "$SCRIPT_PATH/.git" ]; then
  12. echo "\".git\" directory not found, please clone repo via \"git clone --recursive\"";
  13. exit 1;
  14. fi
  15. git submodule update --init;
  16. fi
  17. python3 "$SCRIPT_PATH/lib/scons/scripts/scons.py" $SCONS_DEFAULT_FLAGS "$@"