pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/install Bugfix for shells that don't allow "for i i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b2a42cccb87d
branches:  trunk
changeset: 497811:b2a42cccb87d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Aug 04 21:37:33 2005 +0000

description:
Bugfix for shells that don't allow "for i in ;", that is: an empty list.

diffstat:

 mk/install/bsd.pkginstall.mk |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 6b7d65e7b1e3 -r b2a42cccb87d mk/install/bsd.pkginstall.mk
--- a/mk/install/bsd.pkginstall.mk      Thu Aug 04 21:33:54 2005 +0000
+++ b/mk/install/bsd.pkginstall.mk      Thu Aug 04 21:37:33 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.7 2005/08/04 16:54:53 rillig Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.8 2005/08/04 21:37:33 rillig Exp $
 #
 # This Makefile fragment is included by bsd.pkg.mk to use the common
 # INSTALL/DEINSTALL scripts.  To use this Makefile fragment, simply:
@@ -400,13 +400,13 @@
        *)      ${ECHO} "# DIR: ${RCD_SCRIPTS_DIR:S/${PREFIX}\///} m" ;; \
        esac;                                                           \
        if ${TEST} x${MAKE_DIRS:M*:Q} != x; then                        \
-       for dir in ${MAKE_DIRS}; do                                     \
+       for dir in ${MAKE_DIRS:M*}""; do                                \
                dir=`strip_prefix "$$dir"`;                             \
                ${ECHO} "# DIR: $$dir m";                               \
        done;                                                           \
        fi;                                                             \
        if ${TEST} x${OWN_DIRS:M*:Q} != x; then                         \
-       for dir in ${OWN_DIRS}; do                                      \
+       for dir in ${OWN_DIRS:M*}""; do                                 \
                dir=`strip_prefix "$$dir"`;                             \
                ${ECHO} "# DIR: $$dir mo";                              \
        done;                                                           \
@@ -460,7 +460,7 @@
        ${ECHO} "       \$${CAT} > ./+SHELL << 'EOF_SHELL'";            \
        ${SED} ${FILES_SUBST_SED} ../../mk/install/shell;               \
        ${ECHO} "";                                                     \
-       for pkg_shell in ${PKG_SHELL}; do                               \
+       for pkg_shell in ${PKG_SHELL:M*}""; do                          \
                shell=`strip_prefix "$$pkg_shell"`;                     \
                ${ECHO} "# SHELL: $$pkg_shell";                         \
        done;                                                           \



Home | Main Index | Thread Index | Old Index