Index: mttroot/mtt/bin/trans/struc2switch_txt ================================================================== --- mttroot/mtt/bin/trans/struc2switch_txt +++ mttroot/mtt/bin/trans/struc2switch_txt @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.3 1998/07/25 18:50:53 peterg +## Lower case names +## ## Revision 1.2 1997/06/03 15:17:09 peterg ## Changed label to MTT_SWITCH ## # Revision 1.1 1997/05/13 16:58:59 peterg # Initial revision @@ -28,11 +31,13 @@ echo Creating $1_switch.txt rm -f $1_switch.txt # This is the main transformation using gawk -gawk ' +awk 'BEGIN{ +printf("# These are the switches deduced from ISW and CSW components\n"); +} { if ($1=="state") {i++; if ($3=="MTT_SWITCH") print tolower($4) "\t" i}; } END{ }