pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_chk/files Solaris 2.9's nawk does not lik...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/345d5b8e031a
branches:  trunk
changeset: 500069:345d5b8e031a
user:      heas <heas%pkgsrc.org@localhost>
date:      Sun Oct 02 02:05:29 2005 +0000

description:
Solaris 2.9's nawk does not like the syntax ($0 ~ /=/); it seems as if the
parser interprets this as the division operator '/=', so escape the =.

diffstat:

 pkgtools/pkg_chk/files/pkg_chk.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 26240f3e7b62 -r 345d5b8e031a pkgtools/pkg_chk/files/pkg_chk.sh
--- a/pkgtools/pkg_chk/files/pkg_chk.sh Sun Oct 02 01:22:55 2005 +0000
+++ b/pkgtools/pkg_chk/files/pkg_chk.sh Sun Oct 02 02:05:29 2005 +0000
@@ -1,6 +1,6 @@
 #!@SH@ -e
 #
-# $Id: pkg_chk.sh,v 1.20 2005/09/27 17:13:03 abs Exp $
+# $Id: pkg_chk.sh,v 1.21 2005/10/02 02:05:29 heas Exp $
 #
 # TODO: Make -g check dependencies and tsort
 # TODO: Variation of -g which only lists top level packages
@@ -342,7 +342,7 @@
     if (skip[$1])
        next;
     need = 0;
-    if ($0 ~ /=/) {
+    if ($0 ~ /\=/) {
        split($0, tmp, "[ \t]*=");
        taggroup = tmp[1];
        sub("[ \t]*=", "=");



Home | Main Index | Thread Index | Old Index