Overview
Comment:Replaced print by printf to avoid extra nl in paragraph command.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 0f7c9285df70990d0ba046c7ef36f4c3e1baba4ab9e9495f29681e9fbfe9ab35
User & Date: gawthrop@users.sourceforge.net on 1999-02-17 21:42:19
Other Links: branch diff | manifest | tags
Context
1999-02-21
02:21:03
Initial revision check-in: 97803caf72 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1999-02-17
21:42:19
Replaced print by printf to avoid extra nl in paragraph command. check-in: 0f7c9285df user: gawthrop@users.sourceforge.net tags: origin/master, trunk
06:23:49
Bugs arising from Fig 3.2 fixed

-- depth now zero modulo 10 (3.2 defaults to depth 100!!)
-- horrible bug using = in place of == fixed. check-in: 0dee7d5bad user: gawthrop@users.sourceforge.net tags: origin/master, trunk

Changes

Modified mttroot/mtt/bin/trans/lbl_txt2tex from [929cccfe22] to [86e277e3c2].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
# Copyright (c) P.J.Gawthrop 1998

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



## Revision 1.6  1998/07/27 10:56:31  peterg
## Cosmetics.
##
## Revision 1.5  1998/07/27 08:29:44  peterg
## Include a comment field in the aliases
##
## Revision 1.4  1998/07/17 19:46:44  peterg







>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) P.J.Gawthrop 1998

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.7  1998/07/27 12:56:26  peterg
## Splits up | separated expressions.
##
## Revision 1.6  1998/07/27 10:56:31  peterg
## Cosmetics.
##
## Revision 1.5  1998/07/27 08:29:44  peterg
## Include a comment field in the aliases
##
## Revision 1.4  1998/07/17 19:46:44  peterg
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#Create the alias file complete with headers.
echo "% Label summary file ($1_lbl.tex)" > $1_lbl.tex
echo "% Generated by MTT at `date`" >> $1_lbl.tex

#Write out the Description
    grep '[%|#]SUMMARY' $1_lbl.txt | sed 's/_/\\_/g'  |\
    awk '{
           print "\\paragraph{System " $2 ":"
           for (i=3;i<=NF;i++) printf("%s ",$i); print ""
           print  "}"
         }' >> $1_lbl.tex
    grep '[%|#]DESCRIPTION' $1_lbl.txt | sed 's/_/\\_/g'  |\
    awk '{
           for (i=2;i<=NF;i++) printf("%s ",$i); print ""
         }' >> $1_lbl.tex







|







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#Create the alias file complete with headers.
echo "% Label summary file ($1_lbl.tex)" > $1_lbl.tex
echo "% Generated by MTT at `date`" >> $1_lbl.tex

#Write out the Description
    grep '[%|#]SUMMARY' $1_lbl.txt | sed 's/_/\\_/g'  |\
    awk '{
           printf("\\paragraph{System %s:",$2);
           for (i=3;i<=NF;i++) printf("%s ",$i); print ""
           print  "}"
         }' >> $1_lbl.tex
    grep '[%|#]DESCRIPTION' $1_lbl.txt | sed 's/_/\\_/g'  |\
    awk '{
           for (i=2;i<=NF;i++) printf("%s ",$i); print ""
         }' >> $1_lbl.tex


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