Cleanup emsdk_env scripts (#539)
Remove the optional argument to contruct_env. It simple if we always construct the env in the same place. Avoid using temp files, and avoid changing directory.
This commit is contained in:
@@ -6,12 +6,8 @@
|
||||
set -l script (status -f)
|
||||
set -l dir (dirname $script)
|
||||
|
||||
pushd $dir > /dev/null
|
||||
|
||||
./emsdk construct_env
|
||||
. ./emsdk_set_env.sh
|
||||
$dir/emsdk construct_env
|
||||
. $dir/emsdk_set_env.sh
|
||||
|
||||
set -e -l script
|
||||
set -e -l dir
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user