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.
This commit is contained in:
parent
b3675ff77c
commit
e153a1758d
|
@ -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 @@ BEGIN {
|
|||
NR == 1 {
|
||||
VERSION = $0
|
||||
gsub("\\$", "", VERSION)
|
||||
gsub(/ $/, "", VERSION)
|
||||
|
||||
printf("/*\t$NetBSD" "$\t*/\n\n") > hfile
|
||||
printf("/*\n") > hfile
|
||||
|
@ -153,7 +154,7 @@ NF > 0 && $1 == "model" {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue