source: issm/trunk-jpl/externalpackages/triangle/install-linux64.sh@ 12797

Last change on this file since 12797 was 12797, checked in by Eric.Larour, 13 years ago

Added flag to unplug matlab.

  • Property svn:executable set to *
File size: 608 bytes
RevLine 
[11103]1#!/bin/bash
2
[12797]3#use matlab?
4matlab=1
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/linux64/configure.make ./
21cp ../makefile ./
22
23#Patch triangle.c
[12797]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.