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

Last change on this file since 12707 was 12707, checked in by Mathieu Morlighem, 13 years ago

merged trunk-jpl and trunk for revision 12703

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