Double-check that the files named in GNU_MISSING_OVERRIDE actually exist
before replacing them.
This commit is contained in:
parent
0cbd511107
commit
2e64cac841
1 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.pkg.mk,v 1.1390 2004/02/12 13:30:04 jlam Exp $
|
||||
# $NetBSD: bsd.pkg.mk,v 1.1391 2004/02/12 13:39:57 jlam Exp $
|
||||
#
|
||||
# This file is in the public domain.
|
||||
#
|
||||
|
@ -2460,10 +2460,12 @@ _CONFIGURE_POSTREQ+= do-gnu-missing-override
|
|||
.PHONY: do-gnu-missing-override
|
||||
do-gnu-missing-override:
|
||||
. for file in ${GNU_MISSING_OVERRIDE}
|
||||
${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${WRKSRC}/${file}
|
||||
${_PKG_SILENT}${_PKG_DEBUG} \
|
||||
${CP} ${_PKGSRCDIR}/mk/gnu-config/missing ${WRKSRC}/${file}
|
||||
${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${WRKSRC}/${file}
|
||||
if [ -f ${WRKSRC}/${file} ]; then \
|
||||
${RM} -f ${WRKSRC}/${file}; \
|
||||
${CP} ${_PKGSRCDIR}/mk/gnu-config/missing ${WRKSRC}/${file}; \
|
||||
${CHMOD} +x ${WRKSRC}/${file}; \
|
||||
fi
|
||||
. endfor
|
||||
.endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue