Index: mttroot/mtt/bin/trans/sub_sh2tex ================================================================== --- mttroot/mtt/bin/trans/sub_sh2tex +++ mttroot/mtt/bin/trans/sub_sh2tex @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.5 2004/02/10 16:11:01 gawthrop +## Removed debug +## ## Revision 1.4 2004/02/10 10:22:10 gawthrop ## Do proper arithmetic via let ## Three levels of output ## enumerate, not itemize ## @@ -101,21 +104,21 @@ # Write list item if not at the top level. if [ -n "$2" ]; then #Set up some names filename=$2 - figfile=$3_abg.fig + abgfile=$3_abg.m lblfile=$1_lbl.txt summary='[%|#]SUMMARY' #Get the system description, copying where necesary mtt -q -u compcopy $system $MTT_LIB/comp/compound # mtt -q -u $system lbl txt desc=`grep $summary $lblfile | sed "s/$summary//"` #Count the number of subsystems - subs=`grep -c " $system" $figfile` + subs=`grep -c " $system" $abgfile` if [ "$labels" = "yes" ]; then echo ' \item '$desc ' ('$subs') Section \Ref{sec:'$system'}' >> $filename else echo ' \item' $desc ' ('$subs')' >> $filename