Changeset 24306
- Timestamp:
- 10/31/19 19:24:14 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/externalpackages/emscripten/install.sh ΒΆ
r24281 r24306 2 2 set -eu 3 3 4 # Some cleanup5 rm -rf install6 4 7 # Download source 8 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/emsdk-portable.tar.gz' 'emsdk-portable.tar.gz' 5 # Get Emscripten SDK (emsdk) driver if we have not previously installed 6 # Emscripten. Otherwise, just get the latest version. 7 if [[ ! -d ./emsdk ]]; then 8 # Get the emsdk repo 9 git clone https://github.com/emscripten-core/emsdk.git 9 10 10 # Untar and move source to install directory 11 tar -zxvf emsdk-portable.tar.gz 11 # Create symbolic link 12 ln -s ./emsdk ./install 12 13 13 mv emsdk_portable install 14 cd ./emsdk 15 else 16 # Fetch the latest version of the emsdk 17 cd ./emsdk 18 git pull 19 fi 14 20 15 cd install 21 # Download and install the latest SDK tools. 22 ./emsdk install latest 16 23 17 # Download and install the latest SDK tools 18 ./emsdk update 19 20 # Make the "latest" SDK "active" for the current user. (writes ~/.emscripten file) 21 # NOTE: See revision history for version that we used to hard code in. 22 ./emsdk install latest 24 # Make the "latest" SDK "active" for the current user. (writes ~/.emscripten 25 # file) 23 26 ./emsdk activate latest 24 27 25 28 # Activate PATH and other environment variables in the current terminal 26 source emsdk_env.sh29 source ./emsdk_env.sh
Note:
See TracChangeset
for help on using the changeset viewer.