Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/zic don't try to run a non-existing nbcat



details:   https://anonhg.NetBSD.org/src/rev/367dde187363
branches:  trunk
changeset: 820303:367dde187363
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 06 17:25:32 2017 +0000

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

diffstat:

 usr.sbin/zic/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r f22fe57c6ae2 -r 367dde187363 usr.sbin/zic/Makefile
--- a/usr.sbin/zic/Makefile     Fri Jan 06 17:22:51 2017 +0000
+++ b/usr.sbin/zic/Makefile     Fri Jan 06 17:25:32 2017 +0000
@@ -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 @@
 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 @@
 DPADD+=${LIBUTIL}
 .endif
 
+foo:
+       echo ${TZVERSION}
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index