Overview
Comment:Strips comments from _cmp.txt before processing
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: fc25717e96a2f2f659ef2f4d93329194caa684e6fb84b082f8a4a4d8c66feffd
User & Date: gawthrop@users.sourceforge.net on 2002-12-06 11:45:57
Other Links: branch diff | manifest | tags
Context
2002-12-06
11:47:49
Checks levels in fig file to extract genuine components
Puts comments at top of cmp.txt file
check-in: af8910cc21 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:45:57
Strips comments from _cmp.txt before processing check-in: fc25717e96 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2002-12-04
13:24:16
Added code to distinguish Ports from Components. check-in: ddde0b4981 user: david-hoover@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/cmp2lbl_txt from [9e70f59481] to [37a8cc08d4].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
# Hacked from (now redundent) abg2lbl_txt

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



##
## Old log from abg2lbl_fig2txt
## Revision 1.28  2002/10/30 00:04:22  gawthrop
## Added AEf and AFe to list
##
## Revision 1.27  2002/05/10 09:08:55  gawthrop
## Added EMTF and INTF







>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Hacked from (now redundent) abg2lbl_txt

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  2002/12/01 14:54:52  gawthrop
## Replaces defunct abg2lbl_fig2txt
##
##
## Old log from abg2lbl_fig2txt
## Revision 1.28  2002/10/30 00:04:22  gawthrop
## Added AEf and AFe to list
##
## Revision 1.27  2002/05/10 09:08:55  gawthrop
## Added EMTF and INTF
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
}

create_lbl_body()
{


#Write out the outline lbl file
grep -v  '\[[0-9]*\]'  $1_cmp.txt | \
gawk --field-separator ':' '
 BEGIN {
    OldComponent="None";
    default_cr = "lin";
 }
 { 
  Component = $1;







|







192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
}

create_lbl_body()
{


#Write out the outline lbl file
strip_comments <$1_cmp.txt | grep -v  '\[[0-9]*\]' | \
gawk --field-separator ':' '
 BEGIN {
    OldComponent="None";
    default_cr = "lin";
 }
 { 
  Component = $1;
329
330
331
332
333
334
335

336
337
338
339
340
341
342
343
344
345
346
mv $1_lbl.txt mtt_junk_lbl.txt

write_header            > ${outfile}
cat mtt_junk_alias.txt >> ${outfile}
cat mtt_args.txt       >> ${outfile}
write_blurb            >> ${outfile}
cat mtt_junk_lbl.txt   >> ${outfile}

## Put a blank line at end
cat >> ${outfile} <<EOF

EOF
## Clean up
rm -f mtt_junk*












>











332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
mv $1_lbl.txt mtt_junk_lbl.txt

write_header            > ${outfile}
cat mtt_junk_alias.txt >> ${outfile}
cat mtt_args.txt       >> ${outfile}
write_blurb            >> ${outfile}
cat mtt_junk_lbl.txt   >> ${outfile}

## Put a blank line at end
cat >> ${outfile} <<EOF

EOF
## Clean up
rm -f mtt_junk*






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