New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 12541 for utils/CI/sette_ticket2304/all_functions.sh – NEMO

Ignore:
Timestamp:
2020-03-12T18:05:24+01:00 (4 years ago)
Author:
mathiot
Message:

ticket #2304 : add description of -s and -c in the README, set verbosity of rsync to normal and update text output from sette

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette_ticket2304/all_functions.sh

    r12508 r12541  
    9595   if [ ${SYNC_CONFIGS} == "yes" ]; then 
    9696 
     97      lREF=$3/$1    # reference  
     98      lCFG=$3/$2    # target 
     99 
    97100      echo '-------------------------------------------------------------------------------' 
    98101      echo '                    SOURCE AND CONFIG FILES SYNCHRONISATION                    ' 
    99102      echo '' 
    100       echo "configuration $3/$2 will be synchronised with $3/$1" 
    101       echo '' 
    102  
    103       lREF=$3/$1    # reference  
    104       lCFG=$3/$2    # target 
    105  
     103      echo "configuration $lCFG/MY_SRC will be synchronised with $lREF/MY_SRC" 
     104      echo '' 
    106105      # synchronise MY_SRC if $lCFG directory exist 
    107106      if [ -d $lREF/MY_SRC ] && [ -d $lCFG ] ; then 
     
    126125 
    127126         # synchronisation $lREF/MY_SRC directory (and delete file in target location if needed) 
    128          rsync -av --delete $lREF/MY_SRC/ $lCFG/MY_SRC 
     127         rsync -a --delete $lREF/MY_SRC/ $lCFG/MY_SRC 
    129128 
    130129         # rsync keep preserve the modification time stamp. 
     
    133132      fi 
    134133 
     134      echo '' 
     135      echo "configuration $lCFG/EXP00 will be synchronised with $lREF/EXPREF" 
     136      echo "(links are skipped)" 
     137      echo '' 
    135138      # synchronize EXPREF 
    136139      if [ -d $lREF/EXPREF ] && [ -d $lCFG/EXP00 ] ; then 
    137          rsync -aq --no-links $lREF/EXPREF/ $lCFG/EXP00/. 
     140         rsync -a --no-links $lREF/EXPREF/ $lCFG/EXP00/. 
    138141      fi 
    139142      echo '-------------------------------------------------------------------------------' 
Note: See TracChangeset for help on using the changeset viewer.