orig/help2roff.csh
author Axel Jacobs <axel@jaloxa.eu>
Wed, 16 Apr 2014 21:47:42 +0100
changeset 81 2708809b30b6
parent 0 0aa115157c9c
permissions -rw-r--r--
ltpict, ltview: Up status to 4 (in HEAD)

#!/bin/csh -f
# RCSid: $Id: help2roff.csh,v 3.1 2003/02/22 02:07:30 greg Exp $
# Convert Tcl/Tk help file (used by gethelp.tcl) to troff/nroff format
# for printing.
#

cat << _EOF_
.ds RH "$1:r help
.TL 
`head -1 $1`
.LP
_EOF_
exec sed -e 1d \
-e 's/^\.\([a-zA-Z][a-zA-Z0-9]*\)\.\([a-zA-Z][a-zA-Z0-9]*\)$/.B "\1 \2"/' $1