From 4f52f0e181fab5b7964124c598ec9a1ce8eeb2ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Tue, 30 Dec 2014 18:55:49 +0200 Subject: [PATCH] Add a comment to emsdk_env.sh to remind that it's supposed to be sourced. --- emsdk_env.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/emsdk_env.sh b/emsdk_env.sh index 8d19fcb..ba66ae9 100755 --- a/emsdk_env.sh +++ b/emsdk_env.sh @@ -1,6 +1,20 @@ # This script is sourced by the user and uses # their shell. Try not to use bashisms. +# Do not execute this script without sourcing, +# because it won't have any effect then. +# That is, always run this script with +# +# . ./emsdk_env.sh +# or +# source ./emsdk_env.sh +# +# instead of just plainly running with +# +# ./emsdk_env.sh +# +# which won't have any effect. + SRC="$BASH_SOURCE" if [ "$SRC" = "" ]; then SRC="$_"