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
Line 
1#!/bin/bash
2
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
9#Some cleanup
10rm -rf src install netcdf-$version
11mkdir 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
17tar -zxvf netcdf-$version.tar.gz
18
19#Move netcdf to install directory
20rm -rf src/*
21mv netcdf-$version/* src/
22rm -rf netcdf-$version
23
24#Configure and compile
25cd src
26
27#version dependent:
28./configure --prefix="$ISSM_DIR/externalpackages/netcdf/install"
29
30if [ -z $1 ]; then
31 make
32else
33 make -j $1
34fi
35make install
Note: See TracBrowser for help on using the repository browser.