pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk Properly quote the &, <, and > characters when...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/916fe47e9ce7
branches:  trunk
changeset: 493434:916fe47e9ce7
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri May 06 00:52:30 2005 +0000

description:
Properly quote the &, <, and > characters when generating BROKENWORKLOG.
Approved by wiz.

diffstat:

 mk/bulk/bsd.bulk-pkg.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 786bfe5f383e -r 916fe47e9ce7 mk/bulk/bsd.bulk-pkg.mk
--- a/mk/bulk/bsd.bulk-pkg.mk   Fri May 06 00:46:43 2005 +0000
+++ b/mk/bulk/bsd.bulk-pkg.mk   Fri May 06 00:52:30 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.bulk-pkg.mk,v 1.79 2005/04/11 11:18:01 agc Exp $
+#      $NetBSD: bsd.bulk-pkg.mk,v 1.80 2005/05/06 00:52:30 rillig Exp $
 
 #
 # Copyright (c) 1999, 2000 Hubert Feyrer <hubertf%NetBSD.org@localhost>
@@ -44,6 +44,7 @@
 
 LS?=   ls
 WC?=   wc
+TO_HTML?=      ${SED} -e 's,&,\&amp;,g' -e 's,<,\&lt;,g' -e 's,>,\&gt;,g'
 
 # A sort(1) capable of very long lines is needed for full builds in "tflat".
 # Some platforms (namely, Interix) may not provide one, so override here.
@@ -391,7 +392,7 @@
                        if [ -f "${WRKLOG}" ]; then \
                                (${ECHO_MSG} "<pre>"; \
                                ${ECHO_MSG} ""; \
-                               ${CAT} ${WRKLOG}; \
+                               ${TO_HTML} ${WRKLOG}; \
                                ${ECHO_MSG} "</pre>"; \
                                ) >> ${BROKENWRKLOG}; \
                        fi; \



Home | Main Index | Thread Index | Old Index