Last change
on this file since 23435 was 23435, checked in by jdquinn, 6 years ago |
CHG: Renamed download_external_package.bash -> DownloadExternalPackage.sh and updated calls to it in install scripts
|
-
Property svn:executable
set to
*
|
File size:
556 bytes
|
Rev | Line | |
---|
[14581] | 1 | #!/bin/bash
|
---|
| 2 | set -eu
|
---|
| 3 |
|
---|
| 4 | #Some cleanup
|
---|
| 5 | rm -rf install netcdf-cxx-4.2
|
---|
| 6 | mkdir install
|
---|
| 7 |
|
---|
| 8 | #Download from ISSM server
|
---|
[23435] | 9 | $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/netcdf-cxx-4.2.tar.gz' 'netcdf-cxx-4.2.tar.gz'
|
---|
[14581] | 10 |
|
---|
| 11 | #Untar
|
---|
| 12 | tar -zxvf netcdf-cxx-4.2.tar.gz
|
---|
| 13 |
|
---|
| 14 | #Move metis into install directory
|
---|
| 15 | mv netcdf-cxx-4.2/* install
|
---|
| 16 | rm -rf netcdf-cxx-4.2
|
---|
| 17 |
|
---|
| 18 | #Compile
|
---|
| 19 | export CXXFLAGS="-I$ISSM_DIR/externalpackages/netcdf/install/include "
|
---|
| 20 | cd install
|
---|
| 21 | ./configure --prefix="$ISSM_DIR/externalpackages/netcdf-cxx/install"
|
---|
| 22 | make
|
---|
| 23 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.