tpnetcdf.sh - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
(HTM) git clone git://src.adamsgaard.dk/pism
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tpnetcdf.sh (570B)
---
1 #!/bin/bash
2
3 set -e
4 set -u
5 set -x
6
7 # Install PnetCDF 1.12.1 in ~/local/pnetcdf,
8 # using ~/local/build/pnetcdf as a build directory.
9
10 version=1.12.1
11 prefix=$HOME/local/pnetcdf
12 build_dir=~/local/build/pnetcdf/
13 url=https://parallel-netcdf.github.io/Release/pnetcdf-${version}.tar.gz
14
15 mkdir -p ${build_dir}
16 pushd ${build_dir}
17
18 wget -nc ${url}
19 tar xzf pnetcdf-${version}.tar.gz
20
21 pushd pnetcdf-${version}
22
23 ./configure \
24 --prefix=${prefix} \
25 --enable-shared \
26 --disable-static \
27 --disable-cxx \
28 --disable-fortran
29
30 make all
31 make install
32
33 popd
34 popd