Fixed some pkglint warnings: Use ${ECHO_N} instead of echo -n and trunk
authorrillig <rillig@pkgsrc.org>
Sun, 02 Jul 2006 12:29:22 +0000
branchtrunk
changeset 100106 208f57c4b578
parent 100105 3cad9ba177e2
child 100107 1a179f005d44
Fixed some pkglint warnings: Use ${ECHO_N} instead of echo -n and surround the sed command in the last line by single quotes.
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}