Skip to content

Commit

Permalink
emscripten-buildbot.sh: let user override default SDKDIR.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 7, 2017
1 parent cbe44f7 commit 5fcd454
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build-scripts/emscripten-buildbot.sh
@@ -1,9 +1,13 @@
#!/bin/bash

SDKDIR="/emsdk_portable"
if [ -z "$SDKDIR" ]; then
SDKDIR="/emsdk_portable"
fi

ENVSCRIPT="$SDKDIR/emsdk_env.sh"
if [ ! -f "$ENVSCRIPT" ]; then
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
fi

Expand Down

0 comments on commit 5fcd454

Please sign in to comment.