Source-Changes-HG archive

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

[src/trunk]: src/share/man if UNPRIVED, generate (synthetically) a metadata l...



details:   https://anonhg.NetBSD.org/src/rev/4dce27005a86
branches:  trunk
changeset: 518113:4dce27005a86
user:      perry <perry%NetBSD.org@localhost>
date:      Sat Nov 24 21:39:20 2001 +0000

description:
if UNPRIVED, generate (synthetically) a metadata log for whatis.db

diffstat:

 share/man/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 8f7a4b3e1037 -r 4dce27005a86 share/man/Makefile
--- a/share/man/Makefile        Sat Nov 24 21:37:23 2001 +0000
+++ b/share/man/Makefile        Sat Nov 24 21:39:20 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.20 1999/09/25 21:18:02 tron Exp $
+#      $NetBSD: Makefile,v 1.21 2001/11/24 21:39:20 perry Exp $
 #      from: @(#)Makefile      8.2 (Berkeley) 4/16/94
 
 .include <bsd.own.mk>
@@ -9,6 +9,10 @@
 
 makedb:
        ${MAKEWHATIS} ${DESTDIR}/usr/share/man
+.if defined(UNPRIVED)
+       echo "${DESTDIR}/usr/share/man/whatis.db type=file mode=0444 uname=root gname=wheel" | \
+               sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG}
+.endif
 .else
 makedb:
 .endif



Home | Main Index | Thread Index | Old Index