From 8df14057a47098044876c1bf005fc6ad3108bfde Mon Sep 17 00:00:00 2001 From: agc Date: Thu, 22 Oct 1998 08:53:22 +0000 Subject: Patch from Hubert Feyrer - make sure the directory entry is a file before using it to make the +BUILD_VERSION file. --- mk/bsd.pkg.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mk/bsd.pkg.mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index cc94a2c4032..663802a398c 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.183 1998/10/20 23:21:18 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.184 1998/10/22 08:53:22 agc Exp $ # # This file is in the public domain. # @@ -1945,7 +1945,12 @@ fake-pkg: ${PLIST} ${DESCR} ${CP} ${MESSAGE_FILE} ${PKG_DBDIR}/${PKGNAME}/+DISPLAY; \ fi; \ fi; \ - files="${.CURDIR}/Makefile ${FILESDIR}/* ${PKGDIR}/*"; \ + files=""; \ + for f in ${.CURDIR}/Makefile ${FILESDIR}/* ${PKGDIR}/*; do \ + if [ -f $$f ]; then \ + files="$$files $$f"; \ + fi; \ + done; \ if [ -d ${PATCHDIR} ]; then \ for f in ${PATCHDIR}/patch-*; do \ case $$f in \ -- cgit v1.2.3