Index: /issm/trunk-jpl/externalpackages/emscripten/install.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/emscripten/install.sh	(revision 24305)
+++ /issm/trunk-jpl/externalpackages/emscripten/install.sh	(revision 24306)
@@ -2,25 +2,28 @@
 set -eu
 
-# Some cleanup
-rm -rf install
 
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/emsdk-portable.tar.gz' 'emsdk-portable.tar.gz'
+# Get Emscripten SDK (emsdk) driver if we have not previously installed
+# Emscripten. Otherwise, just get the latest version.
+if [[ ! -d ./emsdk ]]; then
+	# Get the emsdk repo
+	git clone https://github.com/emscripten-core/emsdk.git
 
-# Untar and move source to install directory
-tar -zxvf emsdk-portable.tar.gz
+	# Create symbolic link
+	ln -s ./emsdk ./install
 
-mv emsdk_portable install
+	cd ./emsdk
+else
+	# Fetch the latest version of the emsdk
+	cd ./emsdk
+	git pull
+fi
 
-cd install
+# Download and install the latest SDK tools.
+./emsdk install latest
 
-# Download and install the latest SDK tools
-./emsdk update
-
-# Make the "latest" SDK "active" for the current user. (writes ~/.emscripten file)
-# NOTE: See revision history for version that we used to hard code in.
-./emsdk install latest
+# Make the "latest" SDK "active" for the current user. (writes ~/.emscripten
+# file)
 ./emsdk activate latest
 
 # Activate PATH and other environment variables in the current terminal
-source emsdk_env.sh
+source ./emsdk_env.sh
