Ignore:
Timestamp:
12/12/20 20:48:20 (4 years ago)
Author:
jdquinn
Message:

CHG: Simplification of installation script customization needs: should be able to simply set PREFIX in most cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/netcdf/install-4.7-with_tests.sh

    r25846 r25860  
    99# - curl (7.18.0 or later, for DAP remote access client support)
    1010#
    11 # For most ISSM installations, only hdf5 will be necessary
    12 #
    1311# Sources:
    1412# - https://www.unidata.ucar.edu/software/netcdf/documentation/NUG/getting_and_building_netcdf.html#building
     
    1917VER="4.7.2"
    2018
    21 CURL_ROOT="${ISSM_DIR}/externalpackages/curl/install"
    22 HDF5_ROOT="${ISSM_DIR}/externalpackages/petsc/install"
    23 ZLIB_ROOT="${ISSM_DIR}/externalpackages/petsc/install"
     19PREFIX="${ISSM_DIR}/externalpackages/netcdf/install" # Set to location where external package should be installed
    2420
    2521# Environment
     
    3228
    3329# Unpack source
    34 tar -zxvf netcdf-c-$VER.tar.gz
     30tar -zxvf netcdf-c-${VER}.tar.gz
    3531
    3632# Cleanup
    37 rm -rf install src
    38 mkdir install src
     33rm -rf ${PREFIX} src
     34mkdir -p ${PREFIX} src
    3935
    4036# Move source to 'src' directory
    41 mv netcdf-c-$VER/* src/
    42 rm -rf netcdf-c-$VER
     37mv netcdf-c-${VER}/* src
     38rm -rf netcdf-c-${VER}
    4339
    4440# Configure
    4541cd src
    4642./configure \
    47         --prefix="${ISSM_DIR}/externalpackages/netcdf/install" \
     43        --prefix="${PREFIX}" \
    4844        --disable-static \
    4945        --disable-dependency-tracking \
Note: See TracChangeset for help on using the changeset viewer.