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/4c1282f65a27
branches: trunk
changeset: 350161:4c1282f65a27
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 469cc100b5e3 -r 4c1282f65a27 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