orig/help2roff.csh
changeset 0 0aa115157c9c
equal deleted inserted replaced
-1:000000000000 0:0aa115157c9c
       
     1 #!/bin/csh -f
       
     2 # RCSid: $Id: help2roff.csh,v 3.1 2003/02/22 02:07:30 greg Exp $
       
     3 # Convert Tcl/Tk help file (used by gethelp.tcl) to troff/nroff format
       
     4 # for printing.
       
     5 #
       
     6 
       
     7 cat << _EOF_
       
     8 .ds RH "$1:r help
       
     9 .TL 
       
    10 `head -1 $1`
       
    11 .LP
       
    12 _EOF_
       
    13 exec sed -e 1d \
       
    14 -e 's/^\.\([a-zA-Z][a-zA-Z0-9]*\)\.\([a-zA-Z][a-zA-Z0-9]*\)$/.B "\1 \2"/' $1