pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/check Don't escape newline and tab in regex, newer ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07dfb1cf1c84
branches:  trunk
changeset: 409317:07dfb1cf1c84
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 16 22:53:11 2020 +0000

description:
Don't escape newline and tab in regex, newer gawk complains.

diffstat:

 mk/check/check-shlibs-elf.awk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 1441638bfeab -r 07dfb1cf1c84 mk/check/check-shlibs-elf.awk
--- a/mk/check/check-shlibs-elf.awk     Thu Jan 16 22:45:55 2020 +0000
+++ b/mk/check/check-shlibs-elf.awk     Thu Jan 16 22:53:11 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-shlibs-elf.awk,v 1.17 2018/03/23 04:31:53 triaxx Exp $
+# $NetBSD: check-shlibs-elf.awk,v 1.18 2020/01/16 22:53:11 joerg Exp $
 #
 # Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
 # All rights reserved.
@@ -41,8 +41,8 @@
 function shquote(IN, out) {
        out = IN;
        gsub("\\\\", "\\\\", out);
-       gsub("\\\n", "\\n", out);
-       gsub("\\\t", "\\t", out);
+       gsub("\n", "\\n", out);
+       gsub("\t", "\\t", out);
        gsub(" ", "\\ ", out);
        gsub("'", "\\'", out);
        gsub("`", "\\`", out);



Home | Main Index | Thread Index | Old Index