Changeset 2876 for trunk/MESOSCALE
- Timestamp:
- Jan 23, 2023, 4:27:48 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SIMU/meso_install.sh
r2853 r2876 24 24 gcmcompile="on" 25 25 fortcom="ifort" 26 while getopts "gn:hv:f:ol " options; do26 while getopts "gn:hv:f:ola:" options; do 27 27 case $options in 28 28 n ) name="${OPTARG}";; … … 31 31 o ) gcm="old" ;; 32 32 f ) fortcom="${OPTARG}" ;; 33 a ) archive="${OPTARG}" ;; 33 34 h ) echo " 34 35 # OPTIONS … … 38 39 # -o --> old GCM+meso version 39 40 # -f --> fortran compiler (experimental) 41 # -a [name] --> compile from a tar.gz archive (only provide basename) 40 42 " ; exit ;; 41 43 esac … … 82 84 ## create code repo 83 85 ## ---------------- 86 if [[ "${archive}" != "" ]] 87 then 88 #### archive mode (backup plan) 89 echo "*** installing from archive" 90 \rm $refrepo/code 91 tar xzvf ${archive}".tar.gz" > /dev/null 92 mv ${archive} $refrepo/code 93 cd $refrepo/code 94 pwd 95 else 96 #### normal mode (gitlab) 84 97 echo "*** get gitlab repository" 85 98 \rm $refrepo/code … … 88 101 cd $refrepo/code 89 102 git checkout $version -b $name 103 #### 104 fi 90 105 91 106 ###################################
Note: See TracChangeset
for help on using the changeset viewer.