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.2 2004/02/10 09:51:07 gawthrop +## Updated obsolete path name. +## ## Revision 1.1 2000/12/27 16:04:08 peterg ## Initial revision ## ## Revision 1.7 1998/02/04 10:59:37 peterg ## Tidied up. @@ -90,20 +93,20 @@ if [ -n "$2" ]; then #Set up some names filename=$2 figfile=$3_abg.fig lblfile=$1_lbl.txt - summary='%SUMMARY' + 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" $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 @@ -124,14 +127,14 @@ level1="$level+1" sh $system\_sub.sh "sub_sh2tex $arg " " $filename $system $level1" cat <> $filename \end{$listtype} EOF -else - cat <> $filename - No subsystems. -EOF +#else +# cat <> $filename +# No subsystems. +#EOF fi fi