Ignore:
Timestamp:
07/11/13 14:16:14 (8 years ago)
Author:
jgipsl
Message:

Bug fix : corrected bad behaviour if the master config was LMDZOR_v5.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v5/propagate_master_config.ksh

    r2052 r2106  
    2121verbose=yes 
    2222BaseDir=`pwd` 
    23 ConfigFamily=$( echo $MasterConfig | awk -F"_" '{print $2}' ) 
     23ConfigFamily=$( echo $MasterConfig | awk -F"_" '{print $2}' | awk -F"." '{print $1}' ) 
     24echo ConfigFamily=$ConfigFamily 
    2425 
    25 # ConfigList : all configurations except MasterConfig. The configurations must contain ConfigFamily in the name 
    26 ConfigList=`ls |grep ${ConfigFamily} |grep -v out |grep -vx $MasterConfig` 
     26# ConfigListOther : all configurations except MasterConfig. The configurations must contain ConfigFamily in the name 
     27ConfigListOther=`ls |grep ${ConfigFamily} |grep -v out |grep -vx $MasterConfig` 
    2728 
    28 echo  All modifications in configuration $MasterConfig will copied to the other configurations $ConfigList 
     29echo  All modifications in configuration $MasterConfig will copied to the other configurations : 
     30echo  $ConfigListOther 
    2931 
    3032cd $BaseDir/$MasterConfig 
     
    3638cd $BaseDir 
    3739 
    38 for conf in $ConfigList ; do 
     40for conf in $ConfigListOther ; do 
    3941    for file in $FileList ; do 
    4042        if [ -f ${conf}/${file} ] ; then  
Note: See TracChangeset for help on using the changeset viewer.