From 90da3a413fb2ab52ded6c492f70075cedef34f20 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 29 May 2006 14:26:33 +0000 Subject: 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. --- mk/bsd.pkg.subdir.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mk/bsd.pkg.subdir.mk') diff --git a/mk/bsd.pkg.subdir.mk b/mk/bsd.pkg.subdir.mk index 3a6a44e22d4..1ce141b4a17 100644 --- a/mk/bsd.pkg.subdir.mk +++ b/mk/bsd.pkg.subdir.mk @@ -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 @@ README.html: .PRECIOUS -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}" ; \ -- cgit v1.2.3