pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Change into ${WRKSRC} first so that shell globs exp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff9697ac8b82
branches:  trunk
changeset: 468494:ff9697ac8b82
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Feb 14 15:16:31 2004 +0000

description:
Change into ${WRKSRC} first so that shell globs expand properly.

diffstat:

 mk/bsd.pkg.mk |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 8ac859f6eb21 -r ff9697ac8b82 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat Feb 14 15:10:27 2004 +0000
+++ b/mk/bsd.pkg.mk     Sat Feb 14 15:16:31 2004 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index