#!/bin/sh processline() { echo "- $1 -" name="$1" # I changed "0" to "$" because my sed # doesn't want to understand "0". # -- Zoltan cat xaos.hlp | sed '1,/%'"$1"'/d;/^%/,$ d' | sed \ '1,2s_\([^<]*\)_\ \ \ \ \ \ \ XaoS online help - \1\ \ \
XaoS online help\

\1

\ _g s__

_g s__

_g s___g s___g s___g s___g s___g s___g s___g s___g s___g s___g s___g s___g s_]*>__g s___g s_]*\)>__g s/'\'\''/"/g s/``/"/g' > $1.html echo "" >> $1.html shift while [ "$1" != "" ] ; do echo Link "$1" "$name" if [ "$1" != "$name" ] ; then ln -sf $name.html $1.html fi shift done } process() { while read line ; do eval "processline $line" done } grep "^%" xaos.hlp | sed '/%%/d;s/%//g' | process rm -f index.html ln -s main.html index.html