source: issm/trunk/externalpackages/hdf5/install.sh@ 13395

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

merged trunk-jpl and trunk for revision 13393

  • Property svn:executable set to *
File size: 520 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf src install hdf5-1.8.9
6mkdir src install
7
8#Download from ISSM server
9$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/hdf5-1.8.9.tar.gz' 'hdf5-1.8.9.tar.gz'
10
11#Untar
12tar -zxvf hdf5-1.8.9.tar.gz
13
14#Move hdf5 to src directory
15rm -rf src/*
16mv hdf5-1.8.9/* src/
17rm -rf hdf5-1.8.9
18
19#Configure and compile
20cd src
21./configure --prefix="$ISSM_DIR/externalpackages/hdf5/install"
22if [ $# -eq 0 ]; then
23 make
24else
25 make -j $1
26fi
27make install
Note: See TracBrowser for help on using the repository browser.