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-06-26 12:00:03 +00:00
|
|
|
if [[ -d .git ]]; then
|
2022-06-30 16:06:12 +00:00
|
|
|
git submodule update --init
|
|
|
|
else # Not in a git repo
|
|
|
|
echo Not in a git repo, please clone with git clone --recursive
|
|
|
|
# Return error code 1 to indicate failure
|
|
|
|
exit 1
|
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} "$@"
|