Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Don't leave blanks at the end of the "generated ...



details:   https://anonhg.NetBSD.org/src/rev/f2756be63931
branches:  trunk
changeset: 574385:f2756be63931
user:      perry <perry%NetBSD.org@localhost>
date:      Sun Feb 27 14:29:18 2005 +0000

description:
Don't leave blanks at the end of the "generated from:"
Also, don't print a space after "},"s at the end of line in one of the
files.

diffstat:

 sys/dev/mii/devlist2h.awk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 49e61391d3d8 -r f2756be63931 sys/dev/mii/devlist2h.awk
--- a/sys/dev/mii/devlist2h.awk Sun Feb 27 12:38:42 2005 +0000
+++ b/sys/dev/mii/devlist2h.awk Sun Feb 27 14:29:18 2005 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/awk -f
-#      $NetBSD: devlist2h.awk,v 1.4 2003/12/15 07:32:20 jmc Exp $
+#      $NetBSD: devlist2h.awk,v 1.5 2005/02/27 14:29:18 perry Exp $
 #
 # Copyright (c) 1998 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -98,6 +98,7 @@
 NR == 1 {
        VERSION = $0
        gsub("\\$", "", VERSION)
+       gsub(/ $/, "", VERSION)
 
        printf("/*\t$NetBSD" "$\t*/\n\n") > hfile
        printf("/*\n") > hfile
@@ -153,7 +154,7 @@
                firstdone = 1
        }
 
-       printf(" { MII_OUI_%s, MII_MODEL_%s_%s, MII_STR_%s_%s }, \n",
+       printf(" { MII_OUI_%s, MII_MODEL_%s_%s, MII_STR_%s_%s },\n",
               $2, $2, $3, $2, $3) > dfile
 
        next



Home | Main Index | Thread Index | Old Index