Index: mttroot/mtt/bin/trans/abg2tex ================================================================== --- mttroot/mtt/bin/trans/abg2tex +++ mttroot/mtt/bin/trans/abg2tex @@ -12,10 +12,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## 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 2001/07/12 04:02:53 gawthrop ## Now fixes multiports for input and output as well as state ## ## Revision 1.2 2000/11/27 17:45:00 peterg ## Removed "System" from heading @@ -43,10 +47,23 @@ ## # Revision 1.1 1997/05/19 11:30:00 peterg # Initial revision # ############################################################### + +## Subsystems that don't need documentation +ignore(){ + gawk ' +BEGIN{ +ignored = " Se De Sf Df INTF "; +} +{ + subsys = sprintf(" %s ", $1); + if (match(ignored,subsys0)==0) + print $1 + }' +} #Look for a command line argument while [ -n "`echo $1 | grep '^-'`" ]; do case $1 in -pdf ) pdf='-pdf' @@ -133,11 +150,11 @@ EOF cat $1_sub.tex >> $filename #Now do the subsystems (if at top level) if [ -z "$2" ]; then - sub2subs $1 | sort -u | \ + sub2subs $1 | sort -u | ignore \ gawk '{print "abg2tex", pdf, $1, filename}' pdf=$pdf filename=$filename | sh fi