Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man0 Add some scripts to automatically generate th...
details: https://anonhg.NetBSD.org/src/rev/521d9240002f
branches: trunk
changeset: 511666:521d9240002f
user: hubertf <hubertf%NetBSD.org@localhost>
date: Sun Jun 24 02:34:49 2001 +0000
description:
Add some scripts to automatically generate the man? files
diffstat:
share/man/man0/mkman | 24 ++++++++++++++++++++++++
share/man/man0/noman | 5 +++++
2 files changed, 29 insertions(+), 0 deletions(-)
diffs (37 lines):
diff -r 198e0d00af34 -r 521d9240002f share/man/man0/mkman
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man0/mkman Sun Jun 24 02:34:49 2001 +0000
@@ -0,0 +1,24 @@
+#!/bin/sh
+# $NetBSD: mkman,v 1.1 2001/06/24 02:34:49 hubertf Exp $
+
+#
+# Find all manpage sources
+# Todo: filter out known non-manpages like src/bin/csh/USD.doc/csh.*
+#
+
+echo Preparing data ...
+
+find ../../.. -name '*.[1-9]' -print \
+| xargs file \
+| grep troff \
+| sed 's/:[ ]*.*$//' \
+| fgrep -v -f noman \
+>/tmp/mkman.$$
+
+for i in 1 2 3 4 5 6 7 8 9
+do
+ echo Creating man$i
+ grep "${i}\$" </tmp/mkman.$$ >man${i}
+done
+
+rm /tmp/mkman.$$
diff -r 198e0d00af34 -r 521d9240002f share/man/man0/noman
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man0/noman Sun Jun 24 02:34:49 2001 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: noman,v 1.1 2001/06/24 02:34:49 hubertf Exp $
+# troff files that are no manpages - ready for fgrep -v
+USD.doc/csh
+libcurses/PSD.doc
+/intro
Home |
Main Index |
Thread Index |
Old Index