Changeset 4398


Ignore:
Timestamp:
Jan 25, 2023, 12:40:21 AM (16 months ago)
Author:
fhourdin
Message:

Utilisation de netcdf deja compile et options ar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r4375 r4398  
    238238        "-debug") optim=-debug ; shift ;;
    239239        "-name") MODEL=$2 ; shift ; shift ;;
    240         "-netcdf") netcdf=$2 ; shift ; shift ;;
     240        "-netcdf") case $2 in
     241                       0|1) netcdf=$2 ;;
     242                       *) netcdf=`ls -d $2` ; if [ $? != 0 ] ; then echo No directory $2 ; exit 1 ; fi
     243                   esac
     244                   shift ; shift ;;
    241245        "-physiq") physiq=$2 ; shift ; shift ;;
    242246        "-xios") with_xios="y" ; shift ;;
     
    445449OPTPREC="$OPT_GPROF"
    446450ARFLAGS="rs"
    447 if [ -f /etc/issue ] ; then
    448     if [ "`grep -i ubuntu /etc/issue`" != "" ] ; then
    449         if [ "`grep -i ubuntu /etc/issue | awk ' { print $2 } ' | cut -d. -f1`" -ge 16 ]
    450         then
    451             ARFLAGS="rU"
    452         fi
    453     fi
    454 fi
    455 
    456 
     451if [ "`lsb_release -i -s`" = "Unbuntu" ] ; then
     452    if [ "`lsb_release -r -s | cut -d. -f1`" -ge 16 ] ; then
     453            ARFLAGS="rU"
     454    fi
     455fi
    457456
    458457if [ "$compiler" = "$gfortran" ] ; then
Note: See TracChangeset for help on using the changeset viewer.