Last change
on this file since 24466 was 24466, checked in by jdquinn, 5 years ago |
CHG: New config for triangle on Linux/Mac (will not change anything until m4/issm_options.m4 has been updated)
|
File size:
632 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 |
|
---|
5 | # Constants
|
---|
6 | #
|
---|
7 | INSTALL_DIR="install"
|
---|
8 |
|
---|
9 | # Cleanup
|
---|
10 | rm -rf ${INSTALL_DIR} src
|
---|
11 | mkdir ${INSTALL_DIR} ${INSTALL_DIR}/include ${INSTALL_DIR}/lib src
|
---|
12 |
|
---|
13 | # Download source
|
---|
14 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/triangle.zip" "triangle.zip"
|
---|
15 |
|
---|
16 | # Unpack source
|
---|
17 | unzip triangle.zip -d src
|
---|
18 |
|
---|
19 | # Copy customized source files to 'src' directory
|
---|
20 | cp configs/makefile src
|
---|
21 | cp configs/triangle.h src
|
---|
22 | cp configs/mac/configure.make src
|
---|
23 |
|
---|
24 | # Compile
|
---|
25 | cd src
|
---|
26 | make static
|
---|
27 |
|
---|
28 | # Install
|
---|
29 | cd ..
|
---|
30 | cp src/libtriangle.* ${INSTALL_DIR}/lib
|
---|
31 | cp src/triangle.h ${INSTALL_DIR}/include
|
---|
32 |
|
---|
33 | # Cleanup
|
---|
34 | rm -rf src
|
---|
Note:
See
TracBrowser
for help on using the repository browser.