Index: mttroot/mtt/bin/trans/cmp2sub_txt2sh ================================================================== --- mttroot/mtt/bin/trans/cmp2sub_txt2sh +++ mttroot/mtt/bin/trans/cmp2sub_txt2sh @@ -11,10 +11,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.1 2002/12/03 23:26:08 geraint +## Convert _cmp.txt to _sub.sh. +## Slightly edited copy of (obsolete) abg2sub_m2sh. +## ## Revision 1.4 2002/04/28 18:41:26 geraint ## Fixed [ 549658 ] awk should be gawk. ## Replaced calls to awk with call to gawk. ## ## Revision 1.3 2000/10/03 11:34:53 peterg @@ -42,11 +46,11 @@ echo "# File $1_sub.sh" >> $1_sub.sh echo "# Generated by MTT on `date`." >> $1_sub.sh echo >> $1_sub.sh # Get a list of all components for the _abg file -gawk -F\: '{print $1}' $1_cmp.txt |\ +strip_comments < $1_cmp.txt | gawk -F\: '{print $1}' |\ sort -u > mtt_tmp1 # Remove all components starting with 0 or 1 grep -v '^[01]' < mtt_tmp1 > mtt_tmp4