about summary refs log tree commit diff stats
path: root/man2hlp.sh
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-06-18 23:15:18 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1999-06-18 23:15:18 -0400
commit5be99e2ee1a17028574fcbd90b9ba2c09555585e (patch)
tree1bfb6d74bcc359caef514b87d4fa3efef62dfe97 /man2hlp.sh
parentc7bfda903760e4bd0d0d8327560f6dee5e1dc059 (diff)
downloadlynx-snapshots-5be99e2ee1a17028574fcbd90b9ba2c09555585e.tar.gz
snapshot of project "lynx", label v2-8-3dev_2
Diffstat (limited to 'man2hlp.sh')
-rwxr-xr-xman2hlp.sh15
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