source: issm/trunk-jpl/externalpackages/triangle/install-macosx64.sh@ 12189

Last change on this file since 12189 was 12189, checked in by Mathieu Morlighem, 13 years ago

Deleted all externalpackage from trunk, use python script to download from issm website

  • Property svn:executable set to *
File size: 609 bytes
RevLine 
[11103]1#!/bin/bash
2
[11944]3#use matlab?
4matlab=0
5
6
[11103]7#Some cleanup
8rm -rf install triangle
9mkdir install
10
[12189]11#Download from ISSM server
12$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/triangle.zip' 'triangle.zip'
13
[11103]14#Untar
15cd install
16cp ../triangle.zip ./
17unzip triangle.zip
18
19#copy new makefile
20cp ../configs/macosx64/configure.make ./
21cp ../makefile ./
22
23#Patch triangle.c
[11944]24if [[ $matlab == "1" ]];then
25 patch triangle.c ../triangle.c.patch.matlab
26else
27 patch triangle.c ../triangle.c.patch.python
28fi
[11103]29
30#Compile triangle
31make
32
33#Patch triangle.h
34patch triangle.h ../triangle.h.patch
Note: See TracBrowser for help on using the repository browser.