From e153a1758dcc3e1b19ba7e8c12ffb2943f7d6a2c Mon Sep 17 00:00:00 2001 From: perry Date: Sun, 27 Feb 2005 14:29:18 +0000 Subject: [PATCH] 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. --- sys/dev/mii/devlist2h.awk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/mii/devlist2h.awk b/sys/dev/mii/devlist2h.awk index f539a357d878..6fa356edda88 100644 --- a/sys/dev/mii/devlist2h.awk +++ b/sys/dev/mii/devlist2h.awk @@ -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