Index: mttroot/mtt/bin/trans/lbl2component ================================================================== --- mttroot/mtt/bin/trans/lbl2component +++ mttroot/mtt/bin/trans/lbl2component @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.5 2003/08/09 00:29:52 geraint +## Fixed grep error when lbl file doesn't exist. +## ## Revision 1.4 2002/04/28 18:41:27 geraint ## Fixed [ 549658 ] awk should be gawk. ## Replaced calls to awk with call to gawk. ## ## Revision 1.3 1998/07/28 11:23:31 peterg @@ -27,12 +30,19 @@ ## Revision 1.1 1998/07/17 17:04:50 peterg ## Initial revision ## ############################################################### - -# Regexp for an alias -alias='^[#%]ALIAS' - -if [ -f $1_lbl.txt ]; then - grep $alias $1_lbl.txt | gawk '{if (match($3,"/")>0) print "mtt -q compcopy " $3}' +if [ -f "$1_lbl.txt" ]; then + ## Regexp for an alias + alias='^[#%]ALIAS' + grep $alias $1_lbl.txt | gawk '{if (match($3,"/")>0) print "mtt -q compcopy " $3}' fi + + + + + + + + +