From 110bdfe6940c766b7960b68ab36f761e2d3d279a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 26 May 1999 18:20:40 +0000 Subject: Made the gen_section more accurate. --- doc/itron3.0/gen_section | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/itron3.0/gen_section') diff --git a/doc/itron3.0/gen_section b/doc/itron3.0/gen_section index ba30637d37..27ce450877 100644 --- a/doc/itron3.0/gen_section +++ b/doc/itron3.0/gen_section @@ -126,7 +126,7 @@ echo "@itemize @bullet" for routine in ${ROUTINES} do - description=`grep ${routine} ../../itron_spec/itron3-1.txt | grep "]" | cut -d']' -f2` + description=`grep " ${routine} " ../../itron_spec/itron3-1.txt | grep "]" | cut -d']' -f2 ` description=`echo ${description}` echo "@item @code{${routine}} - ${description}" done @@ -148,14 +148,14 @@ echo "" for routine in ${ROUTINES} do description=`grep ${routine} ../../itron_spec/itron3-1.txt | grep "]" | cut -d']' -f2` - description=`echo ${description}` + description=`echo -n ${description}` echo "" echo "@c" echo "@c ${routine}" echo "@c" echo "" echo "@page" - echo "@subsection ${routine} - ${description}" + echo "@subsection ${routine} - " ${description} echo "" echo "@subheading CALLING SEQUENCE:" echo "" @@ -163,7 +163,7 @@ do echo "@example" proto=`grep "${routine} (" ../../itron_spec/itron3-6.txt | sed -e 's/ercd = //'` # | sed -e 's/ \\(/(/'` - echo `echo ${proto} | cut -d'(' -f1`"(" + echo `echo -n ${proto} | cut -d'(' -f1`"(" echo ${proto} | cut -d'(' -f2 | sed -e 's/ .;//' echo ");" # echo "int ${routine}(" -- cgit v1.2.3