Last change
on this file since 24686 was 24686, checked in by Mathieu Morlighem, 5 years ago |
merged trunk-jpl and trunk for revision 24684
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 |
|
---|
5 | # TODO:
|
---|
6 | # - Introduce build step to $ISSM_DIR/jenkins/jenkins.sh to compile Fortran code in $ISSM_DIR/src/c/modules/GiaDefelectionCorex/ to C with f2c
|
---|
7 | # - Then, revert $ISSM_DIR/externalpackages/emscripten/install.sh to r24306 and test clean build
|
---|
8 | # - When builtin support for Fortran is available, remove build step
|
---|
9 | #
|
---|
10 |
|
---|
11 | VER="latest" # Set this to "latest", or last tag that works in case of failure
|
---|
12 |
|
---|
13 | # Get Emscripten SDK (emsdk) driver if we have not previously installed
|
---|
14 | # Emscripten. Otherwise, just get the latest version.
|
---|
15 | if [[ ! -d ./install ]]; then
|
---|
16 | # Get the emsdk repo
|
---|
17 | git clone https://github.com/emscripten-core/emsdk.git
|
---|
18 |
|
---|
19 | # Move source to 'install' directory
|
---|
20 | mv ./emsdk ./install
|
---|
21 |
|
---|
22 | cd ./install
|
---|
23 | else
|
---|
24 | # Fetch the latest version of the emsdk
|
---|
25 | cd ./install
|
---|
26 | git pull
|
---|
27 | fi
|
---|
28 |
|
---|
29 | # Download and install the latest SDK tools.
|
---|
30 | ./emsdk install $VER
|
---|
31 |
|
---|
32 | # Make the "latest" SDK "active" for the current user. (writes ~/.emscripten
|
---|
33 | # file)
|
---|
34 | ./emsdk activate $VER
|
---|
35 |
|
---|
36 | # Activate PATH and other environment variables in the current terminal
|
---|
37 | source ./emsdk_env.sh
|
---|
Note:
See
TracBrowser
for help on using the repository browser.