Changeset 11101 for issm/trunk-jpl/externalpackages/netcdf/install.sh
- Timestamp:
- 01/13/12 10:13:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/netcdf/install.sh
r6081 r11101 1 1 #!/bin/bash 2 2 3 #Get number of cpus on current platform4 NUMCPUS=$1;5 6 #version of netcdf7 version=`echo *.tar.gz | sed 's/\.tar\.gz//g' | sed 's/netcdf-//g'`8 9 3 #Some cleanup 10 rm -rf install netcdf-$version 11 12 #Create install directories 4 rm -rf install netcdf-4.0.1 13 5 mkdir install 14 6 15 7 #Untar 16 tar -zxvf netcdf- $version.tar.gz8 tar -zxvf netcdf-4.0.1.tar.gz 17 9 18 10 #Move netcdf to install directory 19 11 rm -rf install/* 20 mv netcdf- $version/* install/21 rm -rf netcdf- $version12 mv netcdf-4.0.1/* install/ 13 rm -rf netcdf-4.0.1 22 14 23 #Configure netcdf15 #Configure and compile 24 16 cd install 25 17 ./configure --prefix="$ISSM_TIER/externalpackages/netcdf/install" 26 27 #Compile and install netcdf 28 if [ -z $NUMCPUS ]; 29 then 30 make 31 make install 32 else 33 make -j $NUMCPUS 34 make -j $NUMCPUS install 35 fi 18 make -j $NUMCPUS 19 make -j $NUMCPUS install
Note:
See TracChangeset
for help on using the changeset viewer.