Module Name:    src
Committed By:   joerg
Date:           Mon Oct 26 21:17:19 UTC 2009

Modified Files:
        src/tools/mandoc: Makefile

Log Message:
Hard-wire NetBSD major+minor version for the tool version of mandoc.
This gives "NetBSD 5.99" for .Os in -current and "NetBSD 6.0" for the
next release.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tools/mandoc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/mandoc/Makefile
diff -u src/tools/mandoc/Makefile:1.1 src/tools/mandoc/Makefile:1.2
--- src/tools/mandoc/Makefile:1.1	Wed Oct 21 18:04:52 2009
+++ src/tools/mandoc/Makefile	Mon Oct 26 21:17:19 2009
@@ -1,6 +1,13 @@
-#	$NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+#	$NetBSD: Makefile,v 1.2 2009/10/26 21:17:19 joerg Exp $
 
 HOSTPROGNAME=	${_TOOL_PREFIX}mandoc
 HOST_SRCDIR=	external/bsd/mdocml/bin/mandoc
 
+.include <bsd.own.mk>
+
+NETBSD_MINOR!=	${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -n
+NETBSD_OSNAME=	"NetBSD ${NETBSD_MINOR}"
+
+HOST_CPPFLAGS+=	-DOSNAME=${NETBSD_OSNAME:Q}
+
 .include "${.CURDIR}/../Makefile.host"

Reply via email to