Last change
on this file was
1753,
checked in by aslmd, 8 years ago
|
online location of old netcdf files changed
|
-
Property svn:executable set to
*
|
File size:
676 bytes
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | ze_netcdf=netcdf-4.0.1 |
---|
4 | #ze_netcdf=netcdf-3.6.1 |
---|
5 | |
---|
6 | #wget ftp://ftp.unidata.ucar.edu/pub/netcdf/$ze_netcdf.tar.gz |
---|
7 | wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/$ze_netcdf.tar.gz |
---|
8 | tar xzvf $ze_netcdf.tar.gz |
---|
9 | \rm $ze_netcdf.tar.gz |
---|
10 | |
---|
11 | export FC=gfortran |
---|
12 | export FFLAGS=" -O2" |
---|
13 | export F90=gfortran |
---|
14 | export FCFLAGS="-O2 -ffree-form" |
---|
15 | export CPPFLAGS="" |
---|
16 | export CC=gcc |
---|
17 | export CFLAGS="-O2" |
---|
18 | export CXX=g++ |
---|
19 | export CXXFLAGS="-O2" |
---|
20 | |
---|
21 | mv $ze_netcdf gfortran_$ze_netcdf |
---|
22 | cd gfortran_$ze_netcdf |
---|
23 | PREFIX=$PWD |
---|
24 | if [[ "$ze_netcdf" == "netcdf-3.6.1" ]] |
---|
25 | then |
---|
26 | cd src |
---|
27 | fi |
---|
28 | |
---|
29 | ./configure --prefix=${PREFIX} #--disable-cxx |
---|
30 | make > make.log 2>&1 |
---|
31 | make test > make.log 2>&1 |
---|
32 | make install > make.log 2>&1 |
---|
Note: See
TracBrowser
for help on using the repository browser.