Ignore:
Timestamp:
01/13/12 10:13:39 (13 years ago)
Author:
Mathieu Morlighem
Message:

Changing the way externalpackages are installed: one script per version and per platform if necessary. The goal is to make the installation process more userfriendly

File:
1 edited

Legend:

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

    r6081 r11101  
    11#!/bin/bash
    22
    3 #Get number of cpus on current platform
    4 NUMCPUS=$1;
    5 
    6 #version of netcdf
    7 version=`echo *.tar.gz | sed 's/\.tar\.gz//g' | sed 's/netcdf-//g'`
    8 
    93#Some cleanup
    10 rm -rf install netcdf-$version
    11 
    12 #Create install directories
     4rm -rf install netcdf-4.0.1
    135mkdir install
    146
    157#Untar
    16 tar -zxvf  netcdf-$version.tar.gz
     8tar -zxvf  netcdf-4.0.1.tar.gz
    179
    1810#Move netcdf to install directory
    1911rm -rf install/*
    20 mv netcdf-$version/* install/
    21 rm -rf netcdf-$version
     12mv netcdf-4.0.1/* install/
     13rm -rf netcdf-4.0.1
    2214
    23 #Configure netcdf
     15#Configure and compile
    2416cd install
    2517./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
     18make  -j $NUMCPUS
     19make  -j $NUMCPUS install
Note: See TracChangeset for help on using the changeset viewer.