From 5d0ac15aa1898e68f87deaa1021170dee66b7ac6 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Mon, 8 Dec 2003 23:49:25 +0000 Subject: [PATCH] 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. --- etc/MAKEDEV.awk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/MAKEDEV.awk b/etc/MAKEDEV.awk index 45286d4aa3ef..0192ed8b5f53 100644 --- a/etc/MAKEDEV.awk +++ b/etc/MAKEDEV.awk @@ -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 @@ BEGIN { # 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; }