pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/squid Fix and style improvement for shell script p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e601f82cb8c1
branches:  trunk
changeset: 509534:e601f82cb8c1
user:      taca <taca%pkgsrc.org@localhost>
date:      Sat Mar 11 10:41:03 2006 +0000

description:
Fix and style improvement for shell script part of post-install.

diffstat:

 www/squid/Makefile |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r a578c5d8e396 -r e601f82cb8c1 www/squid/Makefile
--- a/www/squid/Makefile        Sat Mar 11 10:07:49 2006 +0000
+++ b/www/squid/Makefile        Sat Mar 11 10:41:03 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.171 2006/03/05 04:21:20 taca Exp $
+# $NetBSD: Makefile,v 1.172 2006/03/11 10:41:03 taca Exp $
 
 DISTNAME=      squid-2.5.STABLE12
 PKGNAME=       squid-2.5.12
@@ -123,19 +123,20 @@
                ${INSTALL_DATA} $$i ${DOCDIR};                  \
        done
        @(                                                      \
-       for FILE in ${OPTIONAL_FILES}; do                       \
-         ${TEST} ! -r ${PREFIX}/${FILE} || ${ECHO} ${FILE};    \
+       for i in ${OPTIONAL_FILES}; do                          \
+         ${TEST} ! -r ${PREFIX}/$$i || ${ECHO} $$i;            \
        done;                                                   \
        cd ${WRKSRC}/errors;                                    \
        for i in *; do                                          \
-               ${TEST} -d ${i} &&                              \
+               ${TEST} -d $$i &&                               \
                (${LS} $$i/ERR_* |                              \
                ${SED} -e 's@^@share/squid/errors/@';           \
                ${ECHO} "@dirrm share/squid/errors/$$i");       \
        done;                                                   \
        ${ECHO} "@dirrm share/squid/errors";                    \
        cd ${WRKSRC}/icons;                                     \
-       ${LS} anthony-*.gif | ${SED} -e 's@^@share/squid/icons/@';      \
+       ${LS} anthony-*.gif |                                   \
+                       ${SED} -e 's@^@share/squid/icons/@';    \
        ${ECHO} "@dirrm share/squid/icons";                     \
        ${ECHO} "share/squid/mib.txt";                          \
        ${ECHO} "@dirrm share/squid"                            \



Home | Main Index | Thread Index | Old Index