#!/bin/sh # Modification History # Changed on 11/05/98 by DanEspen (dje): # - Changed from ksh to sh for extra portability. # Created on 10/31/98 by DanEspen (dje): # - Takes certain text files from the Fvwm distribution and # converts them to html. # Arg 1 is the input file name. # This has to be run from the directory where the output file is wanted. # This is designed for the files, ChangeLog, TO-DO, FAQ name=`basename $1` outfile=$name.html # make header: echo "
" > $outfile # Embed the text with some adjustment: sed -e 's/&/\&/' \ -e 's/\</' \ -e 's/>/\>/' $1 >> $outfile # make footer: echo "