Changeset 24306


Ignore:
Timestamp:
10/31/19 19:24:14 (5 years ago)
Author:
jdquinn
Message:

BUG: Stop pulling Emscripten SDK source from ISSM repo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/externalpackages/emscripten/install.sh ΒΆ

    r24281 r24306  
    22set -eu
    33
    4 # Some cleanup
    5 rm -rf install
    64
    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.
     7if [[ ! -d ./emsdk ]]; then
     8        # Get the emsdk repo
     9        git clone https://github.com/emscripten-core/emsdk.git
    910
    10 # Untar and move source to install directory
    11 tar -zxvf emsdk-portable.tar.gz
     11        # Create symbolic link
     12        ln -s ./emsdk ./install
    1213
    13 mv emsdk_portable install
     14        cd ./emsdk
     15else
     16        # Fetch the latest version of the emsdk
     17        cd ./emsdk
     18        git pull
     19fi
    1420
    15 cd install
     21# Download and install the latest SDK tools.
     22./emsdk install latest
    1623
    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)
    2326./emsdk activate latest
    2427
    2528# Activate PATH and other environment variables in the current terminal
    26 source emsdk_env.sh
     29source ./emsdk_env.sh
Note: See TracChangeset for help on using the changeset viewer.