Source-Changes-HG archive

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

[src/trunk]: src/etc Improve the portability of this script by escaping some ...



details:   https://anonhg.NetBSD.org/src/rev/6ed1d910c10b
branches:  trunk
changeset: 556183:6ed1d910c10b
user:      dmcmahill <dmcmahill%NetBSD.org@localhost>
date:      Mon Dec 08 23:49:25 2003 +0000

description:
Improve the portability of this script by escaping some {'s and }'s used
in a regex.  Works with Solaris awk as well as gawk now.

diffstat:

 etc/MAKEDEV.awk |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 4c98cca72f37 -r 6ed1d910c10b etc/MAKEDEV.awk
--- a/etc/MAKEDEV.awk   Mon Dec 08 21:08:07 2003 +0000
+++ b/etc/MAKEDEV.awk   Mon Dec 08 23:49:25 2003 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/awk -
 #
-#      $NetBSD: MAKEDEV.awk,v 1.9 2003/10/28 11:34:14 jdolecek Exp $
+#      $NetBSD: MAKEDEV.awk,v 1.10 2003/12/08 23:49:25 dmcmahill Exp $
 #
 # Copyright (c) 2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -178,15 +178,15 @@
 
 # filter the two unneeded makedisk_p* routines, leave only
 # the one used
-/^makedisk_p8\(\) {/, /^}/ {
+/^makedisk_p8\(\) \{/, /^\}/ {
        if (MKDISK != "makedisk_p8")
                next;
 }
-/^makedisk_p16\(\) {/, /^}/ {
+/^makedisk_p16\(\) \{/, /^\}/ {
        if (MKDISK != "makedisk_p16")
                next;
 }
-/^makedisk_p16high\(\) {/, /^}/ {
+/^makedisk_p16high\(\) \{/, /^\}/ {
        if (MKDISK != "makedisk_p16high")
                next;
 }



Home | Main Index | Thread Index | Old Index