|
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
|
| Rev | Line | |
|---|
| [11103] | 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| [11944] | 3 | #use matlab?
|
|---|
| 4 | matlab=0
|
|---|
| 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/macosx64/configure.make ./
|
|---|
| 21 | cp ../makefile ./
|
|---|
| 22 |
|
|---|
| 23 | #Patch triangle.c
|
|---|
| [11944] | 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.