head 1.1; branch 1.1.1; access ; symbols start:1.1.1.1 markom:1.1.1; locks ; strict; comment @# @; 1.1 date 2002.01.16.10.24.50; author markom; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.01.16.10.24.50; author markom; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @#!/bin/sh # filter to convert Tk and Tcl man pages to html equivalents # does not do any linking !!!! TOP=`pwd` if [ $# -eq 0 ] ; then echo "Usage $0 filename" exit fi cat $1 | sed -e 's/\\-/-/g' \ -e 's/\\[0&]/ /g' \ -e 's/&/\&/g' \ -e 's/\</g' \ -e 's/>/\>/g' \ -e 's/\\|//g' \ -e 's/\\e/\\/g' | /usr/bin/nawk -f ${TOP}/tk2html.awk | sed -e 's^\\fB\([^\\]*\)\\fR^\1^g' \ -e 's^\\fI\(.[^\\]*\)\\fR^\1^g' \ -e 's^\\fB^^g' \ -e 's^\\fI^^g' \ -e 's^\\f[RP]^^g' \ -e 's/^.[LP]P/
/' \
-e 's/^.br/
/' \
-e 's/^\.DS.*/
/' \ -e 's$^\.DE.*$$' \ -e 's/^\.nf */