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
|
Rev | Line | |
---|
[11103] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[12797] | 3 | #use matlab?
|
---|
| 4 | matlab=1
|
---|
| 5 |
|
---|
| 6 |
|
---|
[11103] | 7 | #Some cleanup
|
---|
| 8 | rm -rf install triangle
|
---|
| 9 | mkdir 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
|
---|
| 15 | cd install
|
---|
| 16 | cp ../triangle.zip ./
|
---|
| 17 | unzip triangle.zip
|
---|
| 18 |
|
---|
| 19 | #copy new makefile
|
---|
| 20 | cp ../configs/linux64/configure.make ./
|
---|
| 21 | cp ../makefile ./
|
---|
| 22 |
|
---|
| 23 | #Patch triangle.c
|
---|
[12797] | 24 | if [[ $matlab == "1" ]];then
|
---|
| 25 | patch triangle.c ../triangle.c.patch.matlab
|
---|
| 26 | else
|
---|
| 27 | patch triangle.c ../triangle.c.patch.python
|
---|
| 28 | fi
|
---|
[11103] | 29 |
|
---|
| 30 | #Compile triangle
|
---|
| 31 | make
|
---|
| 32 |
|
---|
| 33 | #Patch triangle.h
|
---|
| 34 | patch triangle.h ../triangle.h.patch
|
---|
Note:
See
TracBrowser
for help on using the repository browser.