Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Ensure that ${TOOL_STAT} is executable before tryin...
details: https://anonhg.NetBSD.org/src/rev/60aec9534ec7
branches: trunk
changeset: 555911:60aec9534ec7
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Dec 04 12:15:20 2003 +0000
description:
Ensure that ${TOOL_STAT} is executable before trying to run it;
it may not be available when performing "make obj" in tools/
when using BSDSRCDIR & BSDOBJDIR (instead of MAKEOBJDIR{,PREFIX}).
diffstat:
share/mk/bsd.obj.mk | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 82dfd90485c9 -r 60aec9534ec7 share/mk/bsd.obj.mk
--- a/share/mk/bsd.obj.mk Thu Dec 04 10:11:12 2003 +0000
+++ b/share/mk/bsd.obj.mk Thu Dec 04 12:15:20 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.obj.mk,v 1.45 2003/11/06 22:47:22 lukem Exp $
+# $NetBSD: bsd.obj.mk,v 1.46 2003/12/04 12:15:20 lukem Exp $
.if !defined(_BSD_OBJ_MK_)
_BSD_OBJ_MK_=1
@@ -74,7 +74,8 @@
fi; \
subdir=$${subdir%/}; \
dest=${__usrobjdir}/$$subdir${__usrobjdirpf}; \
- if ttarg=`${TOOL_STAT} -qf '%Y' $${here}${__objdir}` && \
+ if [ -x ${TOOL_STAT} ] && \
+ ttarg=`${TOOL_STAT} -qf '%Y' $${here}${__objdir}` && \
[ "$$dest" = "$$ttarg" ]; then \
: ; \
else \
Home |
Main Index |
Thread Index |
Old Index