Rev | Line | |
---|
[11101] | 1 | #!/bin/bash
|
---|
[13246] | 2 | set -eu
|
---|
[11101] | 3 |
|
---|
| 4 | #Some cleanup
|
---|
| 5 | rm -rf install metis-4.0
|
---|
| 6 | mkdir install
|
---|
| 7 |
|
---|
[12189] | 8 | #Download from ISSM server
|
---|
[23435] | 9 | $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/metis-4.0.tar.gz' 'metis-4.0.tar.gz'
|
---|
[12189] | 10 |
|
---|
[11101] | 11 | #Untar
|
---|
| 12 | tar -zxvf metis-4.0.tar.gz
|
---|
| 13 |
|
---|
| 14 | #Move metis into install directory
|
---|
| 15 | mv metis-4.0/* install
|
---|
| 16 | rm -rf metis-4.0
|
---|
| 17 |
|
---|
| 18 | #Apply patches
|
---|
| 19 | cd install
|
---|
| 20 | patch -p1 < ../metis-4.0.patch
|
---|
| 21 | patch Makefile.in ../configs/4.0/macosx64/Makefile.in.patch
|
---|
| 22 |
|
---|
| 23 | #Compile
|
---|
| 24 | make
|
---|
Note:
See
TracBrowser
for help on using the repository browser.