Changeset 12561


Ignore:
Timestamp:
2020-03-17T11:23:35+01:00 (6 months ago)
Author:
mathiot
Message:

ticket #2304: add LC_MESSAGES definition in param (only en_US supported)

Location:
utils/CI/sette_ticket2304
Files:
3 edited

Legend:

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

    r12541 r12561  
    172172# define validation dir 
    173173set_valid_dir () { 
    174     LANG=en_US 
    175     REVISION_NB=`LC_MESSAGES=${LANG} ${SVN_CMD} info ${SETTE_DIR}/.. | grep "Last Changed Rev" | awk '{print $NF}'` 
     174    REVISION_NB=`${SVN_CMD} info ${SETTE_DIR}/.. | grep "Last Changed Rev" | awk '{print $NF}'` 
    176175    if [ ${#REVISION_NB} -eq 0 ] 
    177176    then 
  • utils/CI/sette_ticket2304/param.cfg

    r12505 r12561  
    6868# synchronisation MY_SRC and EXP00 of CFG_ST with MY_SRC and EXPREF form CFG 
    6969SYNC_CONFIGS=${SETTE_SYNC_CONFIGS:-"no"} 
     70# langage (only en_US supported). This is used to grep information form linux/svn command. 
     71LC_MESSAGES=en_US 
    7072# ------------------------------------------------------------------------------------------ 
    7173# 
  • utils/CI/sette_ticket2304/sette_rpt.sh

    r12444 r12561  
    420420  NEMO_VALID=${NEMO_VALIDATION_DIR} 
    421421  NEMO_VALID_REF=${NEMO_VALIDATION_REF} 
    422   LANG=en_US 
    423422# 
    424423  if [ ! -d $NEMO_VALID ]; then 
     
    431430# 
    432431echo "" 
    433 lastchange=`LC_MESSAGES=${LANG} ${SVN_CMD} info ${MAIN_DIR} | grep 'Last Changed Rev' | awk '{print $NF}'` 
    434 revision=`LC_MESSAGES=${LANG} ${SVN_CMD} info ${MAIN_DIR} | grep 'Revision' | awk '{print $NF}'` 
    435 branchname=`LC_MESSAGES=${LANG} ${SVN_CMD} info ${MAIN_DIR} | grep ^URL | awk -F ipsl/forge/projets/nemo/svn/ '{print $NF}'` 
     432lastchange=`${SVN_CMD} info ${MAIN_DIR} | grep 'Last Changed Rev' | awk '{print $NF}'` 
     433revision=`${SVN_CMD} info ${MAIN_DIR} | grep 'Revision' | awk '{print $NF}'` 
     434branchname=`${SVN_CMD} info ${MAIN_DIR} | grep ^URL | awk -F ipsl/forge/projets/nemo/svn/ '{print $NF}'` 
    436435echo "Current code is : $branchname @ r$revision  ( last change @ r$lastchange )" 
    437436[ `${SVN_CMD} status -q ${MAIN_DIR}/{cfg,tests,src} | wc -l` -ge 1 ] && lastchange=${lastchange}+ 
Note: See TracChangeset for help on using the changeset viewer.