Changeset 2876


Ignore:
Timestamp:
Jan 23, 2023, 4:27:48 PM (2 years ago)
Author:
aslmd
Message:

mesoscale installer: adding an option to compile from a tar.gz archive (e.g. releases or external users)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SIMU/meso_install.sh

    r2853 r2876  
    2424gcmcompile="on"
    2525fortcom="ifort"
    26 while getopts "gn:hv:f:ol" options; do
     26while getopts "gn:hv:f:ola:" options; do
    2727  case $options in
    2828   n ) name="${OPTARG}";;
     
    3131   o ) gcm="old" ;;
    3232   f ) fortcom="${OPTARG}" ;;
     33   a ) archive="${OPTARG}" ;;
    3334   h ) echo "
    3435# OPTIONS
     
    3839# -o               --> old GCM+meso version
    3940# -f               --> fortran compiler (experimental)
     41# -a [name]        --> compile from a tar.gz archive (only provide basename)
    4042" ; exit ;;
    4143  esac
     
    8284## create code repo
    8385## ----------------
     86if [[ "${archive}" != "" ]]
     87then
     88#### archive mode (backup plan)
     89echo "*** installing from archive"
     90\rm $refrepo/code
     91tar xzvf ${archive}".tar.gz" > /dev/null
     92mv ${archive} $refrepo/code
     93cd $refrepo/code
     94pwd
     95else
     96#### normal mode (gitlab)
    8497echo "*** get gitlab repository"
    8598\rm $refrepo/code
     
    88101cd $refrepo/code
    89102git checkout $version -b $name
     103####
     104fi
    90105
    91106###################################
Note: See TracChangeset for help on using the changeset viewer.