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

Last change on this file since 20500 was 20500, checked in by Mathieu Morlighem, 9 years ago

merged trunk-jpl and trunk for revision 20497

  • Property svn:executable set to *
File size: 529 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/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/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.