pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Don't test existence of a file, touch it and compar...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4053bc9ddf73
branches: trunk
changeset: 513473:4053bc9ddf73
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon May 29 14:26:33 2006 +0000
description:
Don't test existence of a file, touch it and compare the content,
but compare the content only if the file existed in first place.
diffstat:
mk/bsd.pkg.subdir.mk | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r d7998440d7a5 -r 4053bc9ddf73 mk/bsd.pkg.subdir.mk
--- a/mk/bsd.pkg.subdir.mk Mon May 29 14:06:27 2006 +0000
+++ b/mk/bsd.pkg.subdir.mk Mon May 29 14:26:33 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.subdir.mk,v 1.63 2006/05/23 15:20:17 joerg Exp $
+# $NetBSD: bsd.pkg.subdir.mk,v 1.64 2006/05/29 14:26:33 joerg Exp $
# Derived from: FreeBSD Id: bsd.port.subdir.mk,v 1.19 1997/03/09 23:10:56 wosch Exp
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
#
@@ -160,8 +160,7 @@
-e '/%%SUBDIR%%/r$@.tmp2' \
-e '/%%SUBDIR%%/d' \
> $@.tmp5
- @if [ ! -f $@ ]; then ${TOUCH} $@ ; fi
- @if ${CMP} -s $@.tmp5 $@ ; then \
+ @if [ -f $@ ] && ${CMP} -s $@.tmp5 $@ ; then \
${RM} $@.tmp5 ; \
else \
${ECHO_MSG} "===> Creating README.html for ${_THISDIR_}${.CURDIR:T}" ; \
Home |
Main Index |
Thread Index |
Old Index