|
Last change
on this file since 12653 was 12653, checked in by Eric.Larour, 13 years ago |
|
netcdf version 4.2. needs hdf5 and zlib in working order, as well as doxygen
|
|
File size:
687 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| 3 | version=4.0.1
|
|---|
| 4 | #version=4.2
|
|---|
| 5 |
|
|---|
| 6 | #for versions 4.2, you need hdf5 compiled, as well as doxygen for the
|
|---|
| 7 | #documentation!
|
|---|
| 8 |
|
|---|
| 9 | #Some cleanup
|
|---|
| 10 | rm -rf src install netcdf-$version
|
|---|
| 11 | mkdir install src
|
|---|
| 12 |
|
|---|
| 13 | #Download from ISSM server
|
|---|
| 14 | $ISSM_DIR/scripts/DownloadExternalPackage.py "http://issm.jpl.nasa.gov/files/externalpackages/netcdf-$version.tar.gz" "netcdf-$version.tar.gz"
|
|---|
| 15 |
|
|---|
| 16 | #Untar
|
|---|
| 17 | tar -zxvf netcdf-$version.tar.gz
|
|---|
| 18 |
|
|---|
| 19 | #Move netcdf to install directory
|
|---|
| 20 | rm -rf src/*
|
|---|
| 21 | mv netcdf-$version/* src/
|
|---|
| 22 | rm -rf netcdf-$version
|
|---|
| 23 |
|
|---|
| 24 | #Configure and compile
|
|---|
| 25 | cd src
|
|---|
| 26 |
|
|---|
| 27 | #version dependent:
|
|---|
| 28 | ./configure --prefix="$ISSM_DIR/externalpackages/netcdf/install"
|
|---|
| 29 |
|
|---|
| 30 | if [ -z $1 ]; then
|
|---|
| 31 | make
|
|---|
| 32 | else
|
|---|
| 33 | make -j $1
|
|---|
| 34 | fi
|
|---|
| 35 | make install
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.