Overview
Comment:More cosmetic changes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 3fb6b692f9f0daa0d4e98650bab3f3b0240ce392f2a249e579a533f467c48a76
User & Date: gawthrop@users.sourceforge.net on 1998-07-16 20:39:52
Other Links: branch diff | manifest | tags
Context
1998-07-16
20:40:24
Cleaned up algorithms check-in: 91414ade99 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
20:39:52
More cosmetic changes check-in: 3fb6b692f9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
20:16:30
Initial revision check-in: aacbeca0a0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/lbl_txt2tex from [c262d7e45f] to [565c1e9346].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
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.2  1998/07/16 16:34:09  peterg
## Cosmetic changes
##
## Revision 1.1  1998/07/16 16:31:47  peterg
## Initial revision
##
###############################################################


# Inform user
37
38
39
40
41
42
43
44

45
46
47
48
49
50

51
52
53

54
55
56
57
58
59
60
40
41
42
43
44
45
46

47
48
49
50
51
52

53
54
55

56
57
58
59
60
61
62
63







-
+





-
+


-
+







    grep '[%|#]DESCRIPTION' $1_lbl.txt | sed 's/_/\\_/g'  |\
    awk '{
           for (i=2;i<=NF;i++) print $i " ";
         }' >> $1_lbl.tex

#Write out the aliases
cat <<EOF >> $1_lbl.tex
\paragraph{Interface information}
\paragraph{Interface information:}
\begin{description}
EOF
    grep '[%|#]ALIAS' $1_lbl.txt | sed 's/_/\\_/g' |\
    awk '{
      if (match($2,"\\$")>0){
        print "\\item [Parameter \\" $2 "] represents " $3
        print "\\item [Parameter \\" $2 "] represents actual parameter \\textbf{" $3 "}"
      }
      else{
        print "\\item [Port " $2 "] represents actual port " $3 "" 
        print "\\item [Port " $2 "] represents actual port \\textbf{" $3 "}"
      }
     }
    END{if (NR==0) print "\\item This component has no aliases"
}'  | sort >> $1_lbl.tex
cat <<EOF >> $1_lbl.tex
\end{description}
EOF


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