Last change
on this file since 26744 was 26744, checked in by Mathieu Morlighem, 3 years ago |
merged trunk-jpl and trunk for revision 26742
|
-
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 | ## Constants
|
---|
12 | #
|
---|
13 | VER="latest" # Set this to "latest", or last tag that works in case of failure
|
---|
14 |
|
---|
15 | ## Environment
|
---|
16 | #
|
---|
17 | PREFIX="${ISSM_DIR}/externalpackages/emscripten/install"
|
---|
18 |
|
---|
19 | # Cleanup
|
---|
20 | rm -rf ${PREFIX}
|
---|
21 |
|
---|
22 | # Get the emsdk repo
|
---|
23 | git clone https://github.com/emscripten-core/emsdk.git
|
---|
24 |
|
---|
25 | # Create $PREFIX directory
|
---|
26 | mkdir -p ${PREFIX}
|
---|
27 |
|
---|
28 | # Move source to $PREFIX directory
|
---|
29 | mv emsdk/* ${PREFIX}
|
---|
30 | rm -rf emsdk
|
---|
31 |
|
---|
32 | cd ${PREFIX}
|
---|
33 |
|
---|
34 | # Download and install the latest SDK tools.
|
---|
35 | ./emsdk install ${VER}
|
---|
36 |
|
---|
37 | # Make the "latest" SDK "active" for the current user. (writes ~/.emscripten
|
---|
38 | # file)
|
---|
39 | ./emsdk activate ${VER}
|
---|
40 |
|
---|
41 | # Activate PATH and other environment variables in the current terminal
|
---|
42 | source ./emsdk_env.sh
|
---|
Note:
See
TracBrowser
for help on using the repository browser.