emscripten-buildbot.sh: let user override default SDKDIR.
parent
cbe44f7ff1
commit
5fcd454a16
|
@ -1,9 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -z "$SDKDIR" ]; then
|
||||||
SDKDIR="/emsdk_portable"
|
SDKDIR="/emsdk_portable"
|
||||||
|
fi
|
||||||
|
|
||||||
ENVSCRIPT="$SDKDIR/emsdk_env.sh"
|
ENVSCRIPT="$SDKDIR/emsdk_env.sh"
|
||||||
if [ ! -f "$ENVSCRIPT" ]; then
|
if [ ! -f "$ENVSCRIPT" ]; then
|
||||||
echo "ERROR: This script expects the Emscripten SDK to be in '$SDKDIR'." 1>&2
|
echo "ERROR: This script expects the Emscripten SDK to be in '$SDKDIR'." 1>&2
|
||||||
|
echo "ERROR: Set the \$SDKDIR environment variable to override this." 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue