diff options
author | joerg <joerg@pkgsrc.org> | 2006-05-29 14:26:33 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-05-29 14:26:33 +0000 |
commit | c73fd6744ef1fcc898d07ec587b8f8955a7e6675 (patch) | |
tree | edc3597b1b444355853ce6b4fcf3c4e5fdda30a1 /mk/bsd.pkg.subdir.mk | |
parent | 7747ba1cc0f7fb0ce64b1a0c9534e3095d40b288 (diff) | |
download | pkgsrc-c73fd6744ef1fcc898d07ec587b8f8955a7e6675.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.mk | 5 |
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}" ; \ |