2022-06-26 12:00:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-06-30 16:06:12 +00:00
|
|
|
SCRIPTDIR="$( dirname -- "$0"; )";
|
|
|
|
SCONS_EP=${SCRIPTDIR}/lib/scons/scripts/scons.py
|
|
|
|
|
2022-07-04 17:38:18 +00:00
|
|
|
if [[ -z "${FBT_NO_SYNC:-}" ]] ; then
|
|
|
|
if [[ -d .git ]]; then
|
|
|
|
git submodule update --init
|
|
|
|
else
|
|
|
|
echo Not in a git repo, please clone with git clone --recursive
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-06-26 12:00:03 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
SCONS_DEFAULT_FLAGS="-Q --warn=target-not-built"
|
2022-06-30 16:06:12 +00:00
|
|
|
python3 ${SCONS_EP} ${SCONS_DEFAULT_FLAGS} "$@"
|