Last change
on this file since 13249 was 13249, checked in by seroussi, 13 years ago |
BUG: fixed installation scripts when checking for number of inputs
|
-
Property svn:executable
set to
*
|
File size:
575 bytes
|
Rev | Line | |
---|
[12736] | 1 | #!/bin/bash
|
---|
[13246] | 2 | set -eu
|
---|
[13188] | 3 | #you need hdf5 compiled
|
---|
[12736] | 4 |
|
---|
| 5 | #Some cleanup
|
---|
| 6 | rm -rf src install netcdf-4.2
|
---|
| 7 | mkdir install src
|
---|
| 8 |
|
---|
| 9 | #Download from ISSM server
|
---|
| 10 | $ISSM_DIR/scripts/DownloadExternalPackage.py "http://issm.jpl.nasa.gov/files/externalpackages/netcdf-4.2.tar.gz" "netcdf-4.2.tar.gz"
|
---|
| 11 |
|
---|
| 12 | #Untar
|
---|
| 13 | tar -zxvf netcdf-4.2.tar.gz
|
---|
| 14 |
|
---|
| 15 | #Move netcdf to install directory
|
---|
| 16 | rm -rf src/*
|
---|
| 17 | mv netcdf-4.2/* src/
|
---|
| 18 | rm -rf netcdf-4.2
|
---|
| 19 |
|
---|
| 20 | #Configure and compile
|
---|
| 21 | cd src
|
---|
[13188] | 22 | ./configure \
|
---|
| 23 | --prefix="$ISSM_DIR/externalpackages/netcdf/install" \
|
---|
| 24 | --disable-doxygen
|
---|
[13249] | 25 | if [ $# -eq 0 ]; then
|
---|
[12736] | 26 | make
|
---|
| 27 | else
|
---|
| 28 | make -j $1
|
---|
| 29 | fi
|
---|
| 30 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.