Source-Changes-HG archive

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

[src/trunk]: src/share/mk Invoke "groff" directly when building manual pages, ...



details:   https://anonhg.NetBSD.org/src/rev/da773b7db059
branches:  trunk
changeset: 506806:da773b7db059
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Mar 05 06:52:12 2001 +0000

description:
Invoke "groff" directly when building manual pages, "nroff" is just a
shell script wrapper. This saves at least one fork(2) and one exec(2)
while creating each manual page and should thus speed up builds.

diffstat:

 share/mk/bsd.man.mk |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (27 lines):

diff -r 2a18d1a7aa59 -r da773b7db059 share/mk/bsd.man.mk
--- a/share/mk/bsd.man.mk       Mon Mar 05 05:07:45 2001 +0000
+++ b/share/mk/bsd.man.mk       Mon Mar 05 06:52:12 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.man.mk,v 1.57 2000/09/26 15:33:28 phil Exp $
+#      $NetBSD: bsd.man.mk,v 1.58 2001/03/05 06:52:12 tron Exp $
 #      @(#)bsd.man.mk  8.1 (Berkeley) 6/8/93
 
 .if !target(__initialized__)
@@ -39,12 +39,13 @@
 .9.cat9 .8.cat8 .7.cat7 .6.cat6 .5.cat5 .4.cat4 .3.cat3 .2.cat2 .1.cat1: \
     ${CATDEPS}
 .if !defined(USETBL)
-       @echo "${NROFF} -mandoc ${.IMPSRC} > ${.TARGET}"
-       @${NROFF} -mandoc ${.IMPSRC} > ${.TARGET} || \
+       @echo "${GROFF} -Wall -mtty-char -mandoc ${.IMPSRC} > ${.TARGET}"
+       @${GROFF} -Wall -mtty-char -mandoc ${.IMPSRC} > ${.TARGET} || \
         (rm -f ${.TARGET}; false)
 .else
-       @echo "${TBL} ${.IMPSRC} | ${NROFF} -mandoc > ${.TARGET}"
-       @${TBL} ${.IMPSRC} | ${NROFF} -mandoc > ${.TARGET} || \
+       @echo "${TBL} ${.IMPSRC} | ${GROFF} -Wall -mtty-char -mandoc > ${.TARGET}"
+       @${TBL} ${.IMPSRC} | \
+        ${GROFF} -Wall -mtty-char -mandoc > ${.TARGET} || \
         (rm -f ${.TARGET}; false)
 .endif
 



Home | Main Index | Thread Index | Old Index