emscripten-buildbot.sh: let user override default SDKDIR.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 06 Jan 2017 20:00:17 -0500
changeset 1077450a5917c297c
parent 10773 016a40fda1bb
child 10775 d8a4f8a929b2
emscripten-buildbot.sh: let user override default SDKDIR.
build-scripts/emscripten-buildbot.sh
     1.1 --- a/build-scripts/emscripten-buildbot.sh	Fri Jan 06 02:16:26 2017 -0800
     1.2 +++ b/build-scripts/emscripten-buildbot.sh	Fri Jan 06 20:00:17 2017 -0500
     1.3 @@ -1,9 +1,13 @@
     1.4  #!/bin/bash
     1.5  
     1.6 -SDKDIR="/emsdk_portable"
     1.7 +if [ -z "$SDKDIR" ]; then
     1.8 +    SDKDIR="/emsdk_portable"
     1.9 +fi
    1.10 +
    1.11  ENVSCRIPT="$SDKDIR/emsdk_env.sh"
    1.12  if [ ! -f "$ENVSCRIPT" ]; then
    1.13     echo "ERROR: This script expects the Emscripten SDK to be in '$SDKDIR'." 1>&2
    1.14 +   echo "ERROR: Set the \$SDKDIR environment variable to override this." 1>&2
    1.15     exit 1
    1.16  fi
    1.17