#!/bin/sh # make an html manual page index for the html'd manual pages # do_Header() { echo "$1" echo echo "

$1

" echo "" echo echo "" echo echo "" echo echo " Go Up" echo "" } if [ $# -ne 3 ] ; then echo "needs args " 1>&2 echo " - dirname to scan, " 1>&2 echo " - relpath to put in html file " 1>&2 echo " - Header to put in html file " 1>&2 exit 1 fi dir=$1 relpath=$2 Hdr=$3 tmpFil=./man$$ do_Header "$Hdr" sect="" for i in $1/* do base=`basename $i .html` echo $base 1>&2 if [ -z "$sect" ]; then case $base in *.n) sect=".n" ;; *.3) sect=".3" ;; esac fi base=`basename $base $sect` do_Entry $i $base done do_Footer