mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-23 13:21:44 +03:00
22 lines
584 B
Bash
Executable File
22 lines
584 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# shellcheck disable=SC2086 source=/dev/null
|
|
# unofficial strict mode
|
|
set -eu;
|
|
|
|
SCONS_DEFAULT_FLAGS="-Q --warn=target-not-built";
|
|
SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd -P)";
|
|
|
|
if [ -z "${FBT_NOENV:-}" ]; then
|
|
. "$SCRIPT_PATH/scripts/toolchain/fbtenv.sh";
|
|
fi
|
|
|
|
if [ -z "${FBT_NO_SYNC:-}" ]; then
|
|
if [ ! -d "$SCRIPT_PATH/.git" ]; then
|
|
echo "\".git\" directory not found, please clone repo via \"git clone --recursive\"";
|
|
exit 1;
|
|
fi
|
|
git submodule update --init;
|
|
fi
|
|
|
|
python3 "$SCRIPT_PATH/lib/scons/scripts/scons.py" $SCONS_DEFAULT_FLAGS "$@" |