#! /bin/sh
#
# Inf2Html
#
# converts IBM's INF source format (*.ipf) into HTML code
#
# syntax: Inf2Html <infile> <outfile>

#---| set parameters |---
INPUT=${$1:--}
OUTPUT=${$2:-output.html}

#---| process file |---
cat $INPUT | sed 's/^.br/<BR>/;s/^.*\(.*\)$/<! \1 >/;s/^:userdoc./<HTML><HEAD></;s/:title.\(.*\)$/<TITLE>\1</TITLE></HEAD><BODY>;s/^:h\([1-6]\).*\.\(.*\)$/<BR><HR><BR><H\1>\2<\/H\1>/;s/' 

#===| end of file |===
