10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright (c) P.J.Gawthrop, 1997.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## 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
##
## Revision 1.2 2004/02/10 09:51:07 gawthrop
## Updated obsolete path name.
|
>
>
>
>
>
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright (c) P.J.Gawthrop, 1997.
###############################################################
## 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
##
## Revision 1.2 2004/02/10 09:51:07 gawthrop
## Updated obsolete path name.
|
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
#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`
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
fi
|
|
|
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
#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`
if [ "$labels" = "yes" ]; then
echo ' \item '$desc ' ('$subs') Section \Ref{sec:'$system'}' >> $filename
else
echo ' \item' $desc ' ('$subs')' >> $filename
fi
fi
|