Changeset 2106
- Timestamp:
- 07/11/13 14:16:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v5/propagate_master_config.ksh
r2052 r2106 21 21 verbose=yes 22 22 BaseDir=`pwd` 23 ConfigFamily=$( echo $MasterConfig | awk -F"_" '{print $2}' ) 23 ConfigFamily=$( echo $MasterConfig | awk -F"_" '{print $2}' | awk -F"." '{print $1}' ) 24 echo ConfigFamily=$ConfigFamily 24 25 25 # ConfigList : all configurations except MasterConfig. The configurations must contain ConfigFamily in the name26 ConfigList =`ls |grep ${ConfigFamily} |grep -v out |grep -vx $MasterConfig`26 # ConfigListOther : all configurations except MasterConfig. The configurations must contain ConfigFamily in the name 27 ConfigListOther=`ls |grep ${ConfigFamily} |grep -v out |grep -vx $MasterConfig` 27 28 28 echo All modifications in configuration $MasterConfig will copied to the other configurations $ConfigList 29 echo All modifications in configuration $MasterConfig will copied to the other configurations : 30 echo $ConfigListOther 29 31 30 32 cd $BaseDir/$MasterConfig … … 36 38 cd $BaseDir 37 39 38 for conf in $ConfigList ; do40 for conf in $ConfigListOther ; do 39 41 for file in $FileList ; do 40 42 if [ -f ${conf}/${file} ] ; then
Note: See TracChangeset
for help on using the changeset viewer.