summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-14 15:16:31 +0000
committerjlam <jlam>2004-02-14 15:16:31 +0000
commit1ac5667eff03bd3d99213f7fbeba52a18d126e1a (patch)
treeecb25d2b4023ee79e821c5d78342d6f6f4c6b1ee
parent4525ad82706cdcf6f821609056a561cfafc973ee (diff)
downloadpkgsrc-1ac5667eff03bd3d99213f7fbeba52a18d126e1a.tar.gz
Change into ${WRKSRC} first so that shell globs expand properly.
-rw-r--r--mk/bsd.pkg.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index a21c8536d13..60aa213a385 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1401 2004/02/14 13:58:34 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1402 2004/02/14 15:16:31 jlam Exp $
#
# This file is in the public domain.
#
@@ -2451,15 +2451,15 @@ _CONFIGURE_POSTREQ+= do-config-status-override
.PHONY: do-config-status-override
do-config-status-override:
. for _pattern_ in ${CONFIG_STATUS_OVERRIDE}
- ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
for file in ${_pattern_}; do \
- if [ -f "${WRKSRC}/$$file" ]; then \
- ${RM} -f ${WRKSRC}/$$file; \
+ if [ -f "$$file" ]; then \
+ ${RM} -f $$file; \
(${ECHO} '#!${SH}'; \
${ECHO} '${ECHO} "$$0 $$@" >> ${WRKLOG}'; \
${ECHO} 'exit 0'; \
- ) > ${WRKSRC}/$$file; \
- ${CHMOD} +x ${WRKSRC}/$$file; \
+ ) > $$file; \
+ ${CHMOD} +x $$file; \
fi; \
done
. endfor