source: issm/oecreview/Archive/24307-24683/ISSM-24421-24422.diff@ 24684

Last change on this file since 24684 was 24684, checked in by Mathieu Morlighem, 5 years ago

CHG: added new review

File size: 916 bytes
  • ../trunk-jpl/externalpackages/zlib/install-1.2.sh

     
    1 #!/bin/bash
    2 set -eu
    3 
    4 
    5 # Constants
    6 #
    7 VER="1.2.11"
    8 
    9 # Download source
    10 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/zlib-${VER}.tar.gz" "zlib-${VER}.tar.gz"
    11 
    12 # Unpack source
    13 tar -zxvf zlib-$VER.tar.gz
    14 
    15 # Cleanup
    16 rm -rf install src
    17 mkdir install src
    18 
    19 # Move source to 'src' directory
    20 mv zlib-$VER/* src/
    21 rm -rf zlib-$VER
    22 
    23 # Configure
    24 cd src
    25 ./configure \
    26         --prefix="${ISSM_DIR}/externalpackages/zlib/install"
    27 
    28 # Compile and install
    29 if [ $# -eq 0 ]; then
    30         make
    31         make install
    32 else
    33         make -j $1
    34         make -j $1 install
    35 fi
    36 
    37 # Return to initial directory
    38 cd ..
Note: See TracBrowser for help on using the repository browser.