Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Recognise .3lua and .9lua as man page extensions. ...



details:   https://anonhg.NetBSD.org/src/rev/a57de5acee71
branches:  trunk
changeset: 790851:a57de5acee71
user:      apb <apb%NetBSD.org@localhost>
date:      Fri Oct 25 10:45:01 2013 +0000

description:
Recognise .3lua and .9lua as man page extensions.  Source
files like foo.3lua will result in installed files like
/usr/share/man/man3lua/foo.3lua, /usr/share/man/cat3lua/foo.0,
and /usr/share/man/html3lua/foo.html.

diffstat:

 share/mk/bsd.man.mk |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r e77a27157b12 -r a57de5acee71 share/mk/bsd.man.mk
--- a/share/mk/bsd.man.mk       Fri Oct 25 10:27:08 2013 +0000
+++ b/share/mk/bsd.man.mk       Fri Oct 25 10:45:01 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.man.mk,v 1.112 2013/03/21 02:04:17 christos Exp $
+#      $NetBSD: bsd.man.mk,v 1.113 2013/10/25 10:45:01 apb Exp $
 #      @(#)bsd.man.mk  8.1 (Berkeley) 6/8/93
 
 .include <bsd.init.mk>
@@ -32,6 +32,7 @@
 MAN?=
 MLINKS?=
 _MNUMBERS=     1 2 3 4 5 6 7 8 9
+_MNUMBERS+=    3lua 9lua
 .SUFFIXES:     ${_MNUMBERS:@N@.$N@}
 
 .if ${MKMANZ} == "no"
@@ -123,7 +124,7 @@
 .if (${MKCATPAGES} != "no") && (${MKMAN} != "no")
 catinstall:    catpages catlinks
 catpages::     # ensure target exists
-CATPAGES=      ${MAN:C/\.([1-9])$/.cat\1${MANSUFFIX}/}
+CATPAGES=      ${MAN:C/\.([1-9][a-z]*)$/.cat\1${MANSUFFIX}/}
 
 realall:       ${CATPAGES}
 .NOPATH:       ${CATPAGES}
@@ -191,7 +192,7 @@
 .if (${MKHTML} != "no") && (${MKMAN} != "no")          # {
 htmlinstall:   htmlpages htmllinks
 htmlpages::    # ensure target exists
-HTMLPAGES=     ${MAN:C/\.([1-9])$/.html\1/}
+HTMLPAGES=     ${MAN:C/\.([1-9][a-z]*)$/.html\1/}
 
 HTMLLINKS=     ${MANSUBDIR:?../:}../html%S/%N.html
 HTMLSTYLE=     ${MANSUBDIR:?../:}../style.css



Home | Main Index | Thread Index | Old Index