Source-Changes-HG archive

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

[src/trunk]: src/etc Allow including numbers in %XXX_chr% parameter (for upco...



details:   https://anonhg.NetBSD.org/src/rev/cb553e0e06d9
branches:  trunk
changeset: 1004398:cb553e0e06d9
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Oct 28 02:53:29 2019 +0000

description:
Allow including numbers in %XXX_chr% parameter (for upcoming vio9p driver)

diffstat:

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

diffs (29 lines):

diff -r 8ee49b59ab89 -r cb553e0e06d9 etc/MAKEDEV.awk
--- a/etc/MAKEDEV.awk   Sun Oct 27 23:31:15 2019 +0000
+++ b/etc/MAKEDEV.awk   Mon Oct 28 02:53:29 2019 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/awk -
 #
-#      $NetBSD: MAKEDEV.awk,v 1.26 2019/06/13 20:54:04 christos Exp $
+#      $NetBSD: MAKEDEV.awk,v 1.27 2019/10/28 02:53:29 ozaki-r Exp $
 #
 # Copyright (c) 2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -214,7 +214,7 @@
        print "# Generated from:"
 
        # MAKEDEV.awk (this script) RCS Id
-       ARCSID = "$NetBSD: MAKEDEV.awk,v 1.26 2019/06/13 20:54:04 christos Exp $"
+       ARCSID = "$NetBSD: MAKEDEV.awk,v 1.27 2019/10/28 02:53:29 ozaki-r Exp $"
        gsub(/\$/, "", ARCSID)
        print "#        " ARCSID
        
@@ -305,7 +305,7 @@
                # or block device definition remains within the entry,
                # print it to output, otherwise scrap it.
                parsed = ""
-               while (match(deventry, /%[a-z]*_(blk|chr)%/)) {
+               while (match(deventry, /%[a-z0-9]*_(blk|chr)%/)) {
                        nam = substr(deventry, RSTART + 1, RLENGTH - 6);
                        typ = substr(deventry, RSTART + RLENGTH - 4, 3);
                        if (typ == "blk") {



Home | Main Index | Thread Index | Old Index