source: issm/trunk-jpl/externalpackages/gmt/install-jenkins.sh@ 23417

Last change on this file since 23417 was 23417, checked in by jdquinn, 6 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
2set -eu
3
4#Erase install
5rm -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
11mkdir src
12tar -zxvf gmt-5.1.1.tar.gz
13mv gmt-5.1.1/* src
14rm -rf gmt-5.1.1
15
16#configure:
17cp configs/ConfigUser.cmake-jenkins ./src/cmake/ConfigUser.cmake
18
19cd src
20mkdir build
21cd build
22cmake ../
23
24#compile
25if [ $# -eq 0 ]; then
26 make install
27else
28 make -j $1 install
29fi
30
31#come back:
32cd ../../
Note: See TracBrowser for help on using the repository browser.