Index: mttroot/mtt/bin/trans/lbl_txt2tex ================================================================== --- mttroot/mtt/bin/trans/lbl_txt2tex +++ mttroot/mtt/bin/trans/lbl_txt2tex @@ -12,10 +12,13 @@ ############################################################### ## 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 ## Initial revision @@ -32,16 +35,16 @@ #Write out the Description grep '[%|#]SUMMARY' $1_lbl.txt | sed 's/_/\\_/g' |\ awk '{ print "\\paragraph{System " $2 ":" - for (i=3;i<=NF;i++) print $i " "; + 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++) print $i " "; + for (i=2;i<=NF;i++) printf("%s ",$i); print "" }' >> $1_lbl.tex #Write out the aliases cat <> $1_lbl.tex \paragraph{Interface information:} @@ -50,10 +53,13 @@ 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"