Overview
Comment:Fixed ignore() and pipe so that subsystems are included in reports again.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: ab17204614d2aef4ba4a3f59688ad0e108d6416d9e55c824ba3284ad715810c4
User & Date: geraint@users.sourceforge.net on 2004-08-26 16:11:48
Other Links: branch diff | manifest | tags
Context
2004-08-26
16:15:40
Counts abg.m instead of fig files so that dia models are also included. check-in: 3d663b8d3d user: geraint@users.sourceforge.net tags: origin/master, trunk
16:11:48
Fixed ignore() and pipe so that subsystems are included in reports again. check-in: ab17204614 user: geraint@users.sourceforge.net tags: origin/master, trunk
12:50:12
Replaced some implicit rules with explicit tests and patterns.
Better than having make search through every possible implicit rule.
check-in: f550dbfb56 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/abg2tex from [19df832014] to [3015f96979].

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.5  2004/02/10 16:12:21  gawthrop
## Don't give details of Se De Sf Df INTF
##
## Revision 1.4  2002/04/28 18:41:26  geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##







>
>
>







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.6  2004/02/11 10:10:04  gawthrop
## Includes a _pic.fig file (schematic) if such exists
##
## Revision 1.5  2004/02/10 16:12:21  gawthrop
## Don't give details of Se De Sf Df INTF
##
## Revision 1.4  2002/04/28 18:41:26  geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
ignore(){ 
   gawk '
BEGIN{
ignored = " Se De Sf Df INTF ";
}
{
     subsys = sprintf(" %s ", $1);
     if (match(ignored,subsys0)==0)
       print $1 
  }'
}

#Look for a command line argument
while [ -n "`echo $1 | grep '^-'`" ]; do
  case $1 in







|







60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
ignore(){ 
   gawk '
BEGIN{
ignored = " Se De Sf Df INTF ";
}
{
     subsys = sprintf(" %s ", $1);
     if (match(ignored,subsys)==0)
       print $1 
  }'
}

#Look for a command line argument
while [ -n "`echo $1 | grep '^-'`" ]; do
  case $1 in
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
 \label{sec:$1_sub} 
 \index{\textbf{$1} -- subsystems} 
EOF
cat $1_sub.tex   >> $filename

#Now do the subsystems (if at top level)
if [ -z "$2" ]; then
 sub2subs $1 | sort -u | ignore \
  gawk '{print "abg2tex", pdf, $1, filename}' pdf=$pdf filename=$filename | sh
fi


















|


<
<
<
<
<
<
<
<
<
<
<
165
166
167
168
169
170
171
172
173
174











 \label{sec:$1_sub} 
 \index{\textbf{$1} -- subsystems} 
EOF
cat $1_sub.tex   >> $filename

#Now do the subsystems (if at top level)
if [ -z "$2" ]; then
    sub2subs $1 | sort -u | ignore |\
  gawk '{print "abg2tex", pdf, $1, filename}' pdf=$pdf filename=$filename | sh
fi












MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]