- Timestamp:
- Mar 22, 2022, 7:53:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/check_version.sh
r4101 r4107 2 2 # $Id$ 3 3 4 #set -vx4 set -vx 5 5 6 6 ######################################################################### … … 85 85 datelmdz=`echo $version | cut -d. -f1` 86 86 else 87 if [ $install = 1 ] ; then echo Use model_dir only if the model is already installed ; exit ; fi 87 #if [ $install = 1 ] ; then echo Use model_dir only if the model is already installed ; exit ; fi 88 install=0 89 if [ "`echo $MODEL | cut -c1`" != "/" ] ; then MODEL=`pwd`/$MODEL ; fi # MODEL transformed in absolute path if not 88 90 datelmdz=`date +%Y%m%d`$$ 89 91 fi 90 92 91 93 echo version $version $branche $datelmdz 94 RESU_D=~/WWW/RESUBENCH/$branche/$compilo 92 95 if [ $justcheck = 0 ] ; then 93 RESU_D=~/WWW/RESUBENCH/$branche/$compilo94 96 resubench=$RESU_D/$datelmdz$rel_svn 95 97 mkdir -p $resubench 96 98 fi 97 99 latest=$RESU_D/$version_ref 100 echo $latest 98 101 99 102 # recuperation de la version a laquelle on compare pour le message final : … … 122 125 cd $MODEL 123 126 if [ ! -d 1D ] ; then $get/pub/1D/1D.tar.gz ; tar xvf 1D.tar.gz ; fi # get 1D model 127 if [ ! -d 1D/EXEC ] ; then mv 1D/EXEC 1D/SAVE_EXEC$$ ; fi 124 128 cd 1D ; sed -e "s:^listecas=.*$:listecas=ARMCU/REF:" run.sh ; ./run.sh # run 1D model 125 129 # Controling outputs for the ARMCU/REF test case 126 outf=$MODEL/1D/EXEC/NPv6.1L79/ARMCU/REF/restartphy.nc 130 # outf=$MODEL/1D/EXEC/NPv6.1L79/ARMCU/REF/restartphy.nc 131 outf=$MODEL/1D/EXEC/6AL79/ARMCU/REF/restartphy.nc 127 132 if [ -f $outf ] ; then 128 133 if [ $justcheck = 0 ] ; then … … 145 150 cd $MODEL/modipsl/mod*/LMD* 146 151 LMDZdir=`pwd` 152 echo LMDZdir $LMDZdir 147 153 if [ -d $BENCH ] ; then mkdir -p SAVE$$ ; mv BENCH$resolution SAVE$$ ; fi 148 154 $get/pub/3DBenchs/bench_lmdz_$resolution.tar.gz ; tar xvf bench_lmdz_$resolution.tar.gz … … 407 413 408 414 if [ $mail_address != "" ] ; then 409 ssh lmdz@django "mail -s 'Nouvelle version pour install .sh' $mail_address < "$local_d"/tmp.message"410 fi 415 ssh lmdz@django "mail -s 'Nouvelle version pour install_lmdz.sh' $mail_address < "$local_d"/tmp.message" 416 fi
Note: See TracChangeset
for help on using the changeset viewer.