Last change
on this file since 12736 was 12736, checked in by Mathieu Morlighem, 13 years ago |
Make separate installation scripts for different versions (same as other packages like petsc, mpich2, etc)
|
-
Property svn:executable
set to
*
|
File size:
585 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | #you need hdf5 compiled, as well as doxygen for the documentation
|
---|
4 |
|
---|
5 | #Some cleanup
|
---|
6 | rm -rf src install netcdf-4.2
|
---|
7 | mkdir 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
|
---|
13 | tar -zxvf netcdf-4.2.tar.gz
|
---|
14 |
|
---|
15 | #Move netcdf to install directory
|
---|
16 | rm -rf src/*
|
---|
17 | mv netcdf-4.2/* src/
|
---|
18 | rm -rf netcdf-4.2
|
---|
19 |
|
---|
20 | #Configure and compile
|
---|
21 | cd src
|
---|
22 | ./configure --prefix="$ISSM_DIR/externalpackages/netcdf/install"
|
---|
23 | if [ -z $1 ]; then
|
---|
24 | make
|
---|
25 | else
|
---|
26 | make -j $1
|
---|
27 | fi
|
---|
28 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.