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:
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
pushd `dirname "$_"` > /dev/null
|
||||||
./emsdk construct_env
|
./emsdk construct_env
|
||||||
source ./emsdk_set_env.sh
|
source ./emsdk_set_env.sh
|
||||||
|
popd > /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user