|
Last change
on this file since 23417 was 23417, checked in by jdquinn, 7 years ago |
|
CHG: Converted Python download script to bash script and updated calls to it (NOTE: Still need to add certificate checking support for HTTPS connections via wget)
|
-
Property svn:executable
set to
*
|
|
File size:
533 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 | set -eu
|
|---|
| 3 |
|
|---|
| 4 | #Erase install
|
|---|
| 5 | rm -rf install src gmt
|
|---|
| 6 |
|
|---|
| 7 | #Download from ISSM server
|
|---|
| 8 | $ISSM_DIR/scripts/download_external_package.bash 'https://issm.ess.uci.edu/files/externalpackages/gmt-5.1.1.tar.gz' 'gmt-5.1.1.tar.gz'
|
|---|
| 9 |
|
|---|
| 10 | #install directory
|
|---|
| 11 | mkdir src
|
|---|
| 12 | tar -zxvf gmt-5.1.1.tar.gz
|
|---|
| 13 | mv gmt-5.1.1/* src
|
|---|
| 14 | rm -rf gmt-5.1.1
|
|---|
| 15 |
|
|---|
| 16 | #configure:
|
|---|
| 17 | cp configs/ConfigUser.cmake-jenkins ./src/cmake/ConfigUser.cmake
|
|---|
| 18 |
|
|---|
| 19 | cd src
|
|---|
| 20 | mkdir build
|
|---|
| 21 | cd build
|
|---|
| 22 | cmake ../
|
|---|
| 23 |
|
|---|
| 24 | #compile
|
|---|
| 25 | if [ $# -eq 0 ]; then
|
|---|
| 26 | make install
|
|---|
| 27 | else
|
|---|
| 28 | make -j $1 install
|
|---|
| 29 | fi
|
|---|
| 30 |
|
|---|
| 31 | #come back:
|
|---|
| 32 | cd ../../
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.