Overview
Comment:Include a comment field in the aliases
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 24f94498a544be57bd3d2cdb6e3bb46d2f137e5e0293cf8508fbe4b65ea3b84a
User & Date: gawthrop@users.sourceforge.net on 1998-07-27 08:29:44
Other Links: branch diff | manifest | tags
Context
1998-07-27
08:38:11
Just look for / in the relevant field. check-in: 4709317c6a user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:29:44
Include a comment field in the aliases check-in: 24f94498a5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
07:10:10
Removed dummy global stuff. check-in: 4e34502119 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/lbl_txt2tex from [73900a6819] to [02a5d44088].

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.4  1998/07/17 19:46:44  peterg
## Included component alias.
##
## Revision 1.3  1998/07/16 20:39:52  peterg
## More cosmetic changes
##
## Revision 1.2  1998/07/16 16:34:09  peterg
## Cosmetic changes
##
## Revision 1.1  1998/07/16 16:31:47  peterg
49
50
51
52
53
54
55
56

57
58
59

60
61
62

63




64
65
66
67
68
69
70
52
53
54
55
56
57
58

59
60
61

62
63
64

65
66
67
68
69
70
71
72
73
74
75
76
77







-
+


-
+


-
+

+
+
+
+







cat <<EOF >> $1_lbl.tex
\paragraph{Interface information:}
\begin{description}
EOF
    grep '[%|#]ALIAS' $1_lbl.txt | sed 's/_/\\_/g' |\
    awk '{
      if (match($2,"\\$")>0){
        print "\\item [Parameter \\" $2 "] represents actual parameter \\textbf{" $3 "}"
        printf("\\item [Parameter \\%s] represents actual parameter ",$2)
      }
      else if (match($3,"/")>0){
        print "\\item [Component " $2 "] is in library \\textbf{" $3 "}"
        printf("\\item [Component %s]  is in library ",$2)
      }
      else{
        print "\\item [Port " $2 "] represents actual port \\textbf{" $3 "}"
        printf("\\item [Port %s] represents actual port ",$2)
      }
      printf("\\textbf{%s}",$3)
      if (match($4,"[\#\%]")==1) printf("-- ");
      for (i=5;i<=NF;i++) printf(" %s", $i)
      printf("\n");
     }
    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 ]