diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1999-06-18 23:15:18 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1999-06-18 23:15:18 -0400 |
commit | 5be99e2ee1a17028574fcbd90b9ba2c09555585e (patch) | |
tree | 1bfb6d74bcc359caef514b87d4fa3efef62dfe97 /man2hlp.sh | |
parent | c7bfda903760e4bd0d0d8327560f6dee5e1dc059 (diff) | |
download | lynx-snapshots-5be99e2ee1a17028574fcbd90b9ba2c09555585e.tar.gz |
snapshot of project "lynx", label v2-8-3dev_2
Diffstat (limited to 'man2hlp.sh')
-rwxr-xr-x | man2hlp.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/man2hlp.sh b/man2hlp.sh new file mode 100755 index 00000000..d522bc57 --- /dev/null +++ b/man2hlp.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# This script uses rman (Rosetta Man), which complements TkMan, to strip +# nroff headers from a manpage file, and format the result into a VMS help +# file. +for name in $* +do + NAME=`echo $name |sed -e 's/\.man$/.1/'` + (echo 1 `echo $NAME | sed -e 's/\..*$//' | tr '[a-z]' '[A-Z]'` ; \ + (echo '.hy 0'; cat $name) |\ + nroff -Tascii -man |\ + rman -n$NAME |\ + sed -e 's/^[1-9].*$//' \ + -e 's/^\([A-Z]\)/2 \1/' |\ + uniq) +done |