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.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
|
>
>
>
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Copyright (c) P.J.Gawthrop, 1997.
###############################################################
## 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
##
## Revision 1.3 2004/02/10 10:13:05 gawthrop
## Handles #SUMMARY correctely
|
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
echo >> $filename
fi
# Write list item if not at the top level.
if [ -n "$2" ]; then
#Set up some names
filename=$2
figfile=$3_abg.fig
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`
if [ "$labels" = "yes" ]; then
echo ' \item '$desc ' ('$subs') Section \Ref{sec:'$system'}' >> $filename
else
echo ' \item' $desc ' ('$subs')' >> $filename
fi
fi
|
|
|
|
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
echo >> $filename
fi
# Write list item if not at the top level.
if [ -n "$2" ]; then
#Set up some names
filename=$2
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" $abgfile`
if [ "$labels" = "yes" ]; then
echo ' \item '$desc ' ('$subs') Section \Ref{sec:'$system'}' >> $filename
else
echo ' \item' $desc ' ('$subs')' >> $filename
fi
fi
|