source: issm/trunk-jpl/externalpackages/netcdf/install.sh@ 12653

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
RevLine 
[1]1#!/bin/bash
2
[12653]3version=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
[1]9#Some cleanup
[12653]10rm -rf src install netcdf-$version
11mkdir install src
[1]12
[12189]13#Download from ISSM server
[12653]14$ISSM_DIR/scripts/DownloadExternalPackage.py "http://issm.jpl.nasa.gov/files/externalpackages/netcdf-$version.tar.gz" "netcdf-$version.tar.gz"
[12189]15
[1]16#Untar
[12653]17tar -zxvf netcdf-$version.tar.gz
[1]18
19#Move netcdf to install directory
[12653]20rm -rf src/*
21mv netcdf-$version/* src/
22rm -rf netcdf-$version
[1]23
[11101]24#Configure and compile
[12653]25cd src
26
27#version dependent:
28./configure --prefix="$ISSM_DIR/externalpackages/netcdf/install"
29
[11128]30if [ -z $1 ]; then
31 make
32else
33 make -j $1
34fi
35make install
Note: See TracBrowser for help on using the repository browser.