Differences From Artifact [73900a6819]:

To Artifact [02a5d44088]:


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.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







>
>
>







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
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 "}"
      }
      else if (match($3,"/")>0){
        print "\\item [Component " $2 "] is in library \\textbf{" $3 "}"
      }
      else{
        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








|


|


|

>
>
>
>







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){
        printf("\\item [Parameter \\%s] represents actual parameter ",$2)
      }
      else if (match($3,"/")>0){
        printf("\\item [Component %s]  is in library ",$2)
      }
      else{
        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 ]