summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.subdir.mk
diff options
context:
space:
mode:
authorjoerg <joerg>2006-05-29 14:26:33 +0000
committerjoerg <joerg>2006-05-29 14:26:33 +0000
commit90da3a413fb2ab52ded6c492f70075cedef34f20 (patch)
treeedc3597b1b444355853ce6b4fcf3c4e5fdda30a1 /mk/bsd.pkg.subdir.mk
parentf644925f9e60e5d5b6616ac03e2037813363d808 (diff)
downloadpkgsrc-90da3a413fb2ab52ded6c492f70075cedef34f20.tar.gz
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 (limited to 'mk/bsd.pkg.subdir.mk')
-rw-r--r--mk/bsd.pkg.subdir.mk5
1 files changed, 2 insertions, 3 deletions
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}" ; \