Allow running emsdk_env.sh from another directory.

Move into the emsdk directory before running ./emsdk. Make it possible to add `test -x $EMSCRIPTEN/emsdk_env.sh && source $EMSCRIPTEN/emsdk_env.sh` to my shell initialization script.
This commit is contained in:
Warren Seine
2014-09-02 12:01:35 +02:00
parent 996d162dec
commit 1b51a1e617

View File

@@ -1,5 +1,6 @@
#!/bin/bash
pushd `dirname "$_"` > /dev/null
./emsdk construct_env
source ./emsdk_set_env.sh
popd > /dev/null