Module Name:    src
Committed By:   christos
Date:           Fri Jan  6 17:25:32 UTC 2017

Modified Files:
        src/usr.sbin/zic: Makefile

Log Message:
don't try to run a non-existing nbcat


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/zic/Makefile

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

Modified files:

Index: src/usr.sbin/zic/Makefile
diff -u src/usr.sbin/zic/Makefile:1.19 src/usr.sbin/zic/Makefile:1.20
--- src/usr.sbin/zic/Makefile:1.19	Thu Oct 20 13:38:28 2016
+++ src/usr.sbin/zic/Makefile	Fri Jan  6 12:25:32 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2016/10/20 17:38:28 christos Exp $
+#	$NetBSD: Makefile,v 1.20 2017/01/06 17:25:32 christos Exp $
 
 .include "Makefile.inc"
 .include <bsd.own.mk>
@@ -8,7 +8,11 @@ COPTS.zic.c	+= -Wno-format-nonliteral
 PROG=	zic
 SRCS=	zic.c
 MAN=	zic.8
+.if !empty(TOOL_CAT:M*/*) && !exists(${TOOL_CAT})
+TZVERSION=0
+.else
 TZVERSION!= ${TOOL_CAT} ${NETBSDSRCDIR}/lib/libc/time/version
+.endif
 CPPFLAGS+=-DPKGVERSION='"(tzcode) "' -DTZVERSION='"${TZVERSION}"'
 
 .PATH: ${NETBSDSRCDIR}/lib/libc/time
@@ -18,4 +22,7 @@ LDADD+=-lutil
 DPADD+=${LIBUTIL}
 .endif
 
+foo:
+	echo ${TZVERSION}
+
 .include <bsd.prog.mk>

Reply via email to