#! /bin/sh # file: maketoc-html.sh G. Moody 29 October 2002 # # Generate the HTML table of contents for the WFDB Applications Guide necho() { if [ -s echo.$$ ] then echo $* "\\c" else echo -n $* fi } tocentry() { case $1 in *.1) b=`basename $1 .1`; s=1 ;; *.3) b=`basename $1 .3`; s=3 ;; *.5) b=`basename $1 .5`; s=5 ;; *.7) b=`basename $1 .7`; s=7 ;; *) b=$1; s=x ;; esac case $b in ???????*) b=`echo $b | cut -c 1-6` ;; esac necho '
  • ' grep "\\\\-" $1 | head -1 | sed "s+ \\\\- +: +" | \ sed "s+\\\\fB++" | sed "s+\\\\fR++" } echo -n >echo.$$ cat wag.ht0 cat <Applications