pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Fixed some pkglint warnings: Use ${ECHO_N} instead of ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8775228c84b4
branches:  trunk
changeset: 515436:8775228c84b4
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Jul 02 12:29:22 2006 +0000

description:
Fixed some pkglint warnings: Use ${ECHO_N} instead of echo -n and
surround the sed command in the last line by single quotes.

diffstat:

 Makefile |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r ba51cf35e4ae -r 8775228c84b4 Makefile
--- a/Makefile  Sun Jul 02 12:02:01 2006 +0000
+++ b/Makefile  Sun Jul 02 12:29:22 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.76 2005/09/28 07:49:22 rillig Exp $
+# $NetBSD: Makefile,v 1.77 2006/07/02 12:29:22 rillig Exp $
 #
 
 # tools used by this Makefile
@@ -128,7 +128,7 @@
                                echo "$$l" >> $$DB ; \
                        fi ; \
                fi ; \
-               echo -n "." ; \
+               ${ECHO_N} "."; \
                if [ `${EXPR} $$npkg % 100 = 0` -eq 1 ]; then \
                        echo " " ; \
                        echo "$$npkg" ; \
@@ -174,10 +174,10 @@
 README-all.html:
        @${RM} -f $@.new
        @${RM} -f $@.newsorted
-       @${ECHO} -n "Processing categories for $@:"
+       @${ECHO_N} "Processing categories for $@:"
 .for category in ${SUBDIR}
        @if [ -f ${category}/README.html ]; then \
-               ${ECHO} -n ' ${category}' ; \
+               ${ECHO_N} ' ${category}' ; \
                ${GREP} '^<TR>' ${category}/README.html \
                | ${SED} -e 's|"|"${category}/|' \
                      -e 's| <TD>| <TD>(<A HREF="${category}/README.html">${category}</A>) <TD>|' \
@@ -239,4 +239,4 @@
 show-deps:
        @if [ ! -f "${.CURDIR}/INDEX" ]; then ${ECHO} "No index available -- please build it with 'make index'" >&2; ${FALSE}; fi
        @if [ -z "${PKG}" ]; then ${ECHO} "PKG variable not set" >&2; ${FALSE}; fi
-       @${GREP} -E "^([^|]*\|){7}([^|]* |)${PKG}>=" ${.CURDIR}/INDEX | ${SED} -n "s/^[^|]*|\([^|]*\)|.*/\1/p" | ${SORT}
+       @${GREP} -E "^([^|]*\|){7}([^|]* |)${PKG}>=" ${.CURDIR}/INDEX | ${SED} -n 's/^[^|]*|\([^|]*\)|.*/\1/p' | ${SORT}



Home | Main Index | Thread Index | Old Index