Source-Changes-HG archive

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

[src/trunk]: src/distrib/common Don't escape constructs like ${FOO} in printf...



details:   https://anonhg.NetBSD.org/src/rev/99d0159c42fe
branches:  trunk
changeset: 536443:99d0159c42fe
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Sep 16 02:13:16 2002 +0000

description:
Don't escape constructs like ${FOO} in printf statements.  awk doesn't
expand variables like that in printfs, and the escapes end up in the
output in some versions of awk.

diffstat:

 distrib/common/parselist.awk |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 5e1627b559be -r 99d0159c42fe distrib/common/parselist.awk
--- a/distrib/common/parselist.awk      Mon Sep 16 02:12:30 2002 +0000
+++ b/distrib/common/parselist.awk      Mon Sep 16 02:13:16 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: parselist.awk,v 1.13 2002/09/15 16:15:40 thorpej Exp $
+#      $NetBSD: parselist.awk,v 1.14 2002/09/16 02:13:16 thorpej Exp $
 #
 # Copyright (c) 2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -312,7 +312,7 @@
        if (perm == "")
                perm = 444;
        if (mode == "install") {
-               printf("\t\${INSTALL_FILE} -o \${BINOWN} -g \${BINGRP} -m %s %s %s/%s\n",
+               printf("\t${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m %s %s %s/%s\n",
                    perm, src, ENVIRON["TARGETDIR"], dest)
        } else if (mode == "mtree") {
                printf("./%s mode=%s\n", dest, perm);
@@ -326,7 +326,7 @@
 function link (src, dest) \
 {
        if (mode == "install") {
-               printf("\t\${INSTALL_LINK} %s/%s %s/%s\n",
+               printf("\t${INSTALL_LINK} %s/%s %s/%s\n",
                    ENVIRON["TARGETDIR"], src, ENVIRON["TARGETDIR"], dest)
        } else if (mode == "mtree") {
                printf("./%s\n", dest);
@@ -340,7 +340,7 @@
 function symlink (src, dest) \
 {
        if (mode == "install") {
-               printf("\t\${INSTALL_SYMLINK} %s/%s %s/%s\n",
+               printf("\t${INSTALL_SYMLINK} %s/%s %s/%s\n",
                    ENVIRON["TARGETDIR"], src, ENVIRON["TARGETDIR"], dest)
        } else if (mode == "mtree") {
                printf("./%s type=link link=%s\n", dest, src);



Home | Main Index | Thread Index | Old Index