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

Last change on this file since 13734 was 13734, checked in by Mathieu Morlighem, 12 years ago

CHG: only one netcdf needs to be installed, no need to keep previous version

  • Property svn:executable set to *
File size: 575 bytes
Line 
1#!/bin/bash
2set -eu
3#you need hdf5 compiled
4
5#Some cleanup
6rm -rf src install netcdf-4.2
7mkdir 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
13tar -zxvf netcdf-4.2.tar.gz
14
15#Move netcdf to install directory
16rm -rf src/*
17mv netcdf-4.2/* src/
18rm -rf netcdf-4.2
19
20#Configure and compile
21cd src
22./configure \
23 --prefix="$ISSM_DIR/externalpackages/netcdf/install" \
24 --disable-doxygen
25if [ $# -eq 0 ]; then
26 make
27else
28 make -j $1
29fi
30make install
Note: See TracBrowser for help on using the repository browser.