Index: mttroot/mtt/bin/trans/sub_sh2tex ================================================================== --- mttroot/mtt/bin/trans/sub_sh2tex +++ mttroot/mtt/bin/trans/sub_sh2tex @@ -12,10 +12,15 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.4 2004/02/10 10:22:10 gawthrop +## Do proper arithmetic via let +## Three levels of output +## enumerate, not itemize +## ## Revision 1.3 2004/02/10 10:13:05 gawthrop ## Handles #SUMMARY correctely ## Refined count of subsystems within fig file (avoilds ports with same ## name as system ## @@ -107,11 +112,11 @@ # mtt -q -u $system lbl txt desc=`grep $summary $lblfile | sed "s/$summary//"` #Count the number of subsystems subs=`grep -c " $system" $figfile` -echo $system $figfile $lblfile $summary $desc $subs + if [ "$labels" = "yes" ]; then echo ' \item '$desc ' ('$subs') Section \Ref{sec:'$system'}' >> $filename else echo ' \item' $desc ' ('$subs')' >> $filename fi