2019-10-11 00:55:27 +03:00
|
|
|
# This script is sourced by the user and uses
|
|
|
|
# their shell. Try not to use tcshisms.
|
|
|
|
|
|
|
|
# Do not execute this script without sourcing,
|
|
|
|
# because it won't have any effect then.
|
|
|
|
# That is, always run this script with
|
|
|
|
#
|
|
|
|
# source ./emsdk_env.csh
|
|
|
|
#
|
|
|
|
# instead of just plainly running with
|
|
|
|
#
|
|
|
|
# ./emsdk_env.csh
|
|
|
|
#
|
|
|
|
# which won't have any effect.
|
|
|
|
set SRC=($_)
|
|
|
|
if ("$SRC" == "") then
|
|
|
|
set SRC="$0"
|
|
|
|
else
|
2020-07-11 03:49:16 +03:00
|
|
|
set SRC="$SRC[1]"
|
2019-10-11 00:55:27 +03:00
|
|
|
endif
|
|
|
|
set CURDIR=`pwd`
|
2020-07-11 03:49:16 +03:00
|
|
|
setenv DIR `dirname "$SRC"`
|
2019-10-11 00:55:27 +03:00
|
|
|
unset SRC
|
|
|
|
|
|
|
|
setenv EMSDK_CSH 1
|
|
|
|
|
2020-07-11 03:49:16 +03:00
|
|
|
eval `$DIR/emsdk construct_env`
|
|
|
|
unsetenv DIR
|
2019-10-11 00:55:27 +03:00
|
|
|
|
|
|
|
unsetenv EMSDK_CSH
|