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.1 1998/07/16 16:31:47 peterg
## Initial revision
##
###############################################################
# Inform user
|
>
>
>
|
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
|
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}
\begin{description}
EOF
grep '[%|#]ALIAS' $1_lbl.txt | sed 's/_/\\_/g' |\
awk '{
if (match($2,"\\$")>0){
print "\\item [Parameter \\" $2 "] represents " $3
}
else{
print "\\item [Port " $2 "] represents actual port " $3 ""
}
}
END{if (NR==0) print "\\item This component has no aliases"
}' | sort >> $1_lbl.tex
cat <<EOF >> $1_lbl.tex
\end{description}
EOF
|
|
|
|
|
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:}
\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{
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
|