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

Last change on this file since 13246 was 13246, checked in by seroussi, 13 years ago

CHG: added set -eu in all installation files to stop if an error occurs

  • Property svn:executable set to *
File size: 501 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf install triangle
6mkdir install
7
8#Download from ISSM server
9$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/triangle.zip' 'triangle.zip'
10
11#Untar
12cd install
13cp ../triangle.zip ./
14unzip triangle.zip
15
16#copy new makefile
17cp ../configs/linux64/configure.make ./
18cp ../makefile ./
19
20#Patch triangle.c
21patch triangle.c ../triangle.c.patch
22
23#Compile triangle
24make
25
26#Patch triangle.h
27patch triangle.h ../triangle.h.patch
Note: See TracBrowser for help on using the repository browser.