Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk because I'm feeling tetchy, implement "make describ...
details: https://anonhg.NetBSD.org/src/rev/c52acd0ac6fa
branches: trunk
changeset: 341133:c52acd0ac6fa
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Oct 19 17:08:11 2015 +0000
description:
because I'm feeling tetchy, implement "make describe" for everything that
has man pages.
diffstat:
share/mk/bsd.man.mk | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r ce446ada63dc -r c52acd0ac6fa share/mk/bsd.man.mk
--- a/share/mk/bsd.man.mk Mon Oct 19 16:17:14 2015 +0000
+++ b/share/mk/bsd.man.mk Mon Oct 19 17:08:11 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.man.mk,v 1.117 2014/12/19 22:25:39 christos Exp $
+# $NetBSD: bsd.man.mk,v 1.118 2015/10/19 17:08:11 dholland Exp $
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
.include <bsd.init.mk>
@@ -293,6 +293,14 @@
${TOOL_MANDOC_LINT} -Tlint -fstrict -Wall,stop ${.ALLSRC}
.endif
+##### describe
+describe:
+.for _M in ${MANPAGES}
+ @echo $$(basename ${_M}) - \
+ $$(${TOOL_SED} < ${${_M}:P} -n -e '/^\.Nd /{;s/^....//;p;}')
+.endfor
+
+
##### Pull in related .mk logic
.include <bsd.obj.mk>
.include <bsd.files.mk>
Home |
Main Index |
Thread Index |
Old Index