Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci don't leave whitespace at the end of $ stripped ...



details:   https://anonhg.NetBSD.org/src/rev/956628ee56df
branches:  trunk
changeset: 574387:956628ee56df
user:      perry <perry%NetBSD.org@localhost>
date:      Sun Feb 27 15:19:13 2005 +0000

description:
don't leave whitespace at the end of $ stripped RCS Ids
don't put unneeded tabs at the end of a line

diffstat:

 sys/dev/pci/devlist2h.awk |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r 9031642df266 -r 956628ee56df sys/dev/pci/devlist2h.awk
--- a/sys/dev/pci/devlist2h.awk Sun Feb 27 14:29:44 2005 +0000
+++ b/sys/dev/pci/devlist2h.awk Sun Feb 27 15:19:13 2005 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/awk -f
-#      $NetBSD: devlist2h.awk,v 1.9 2004/08/02 18:43:38 mycroft Exp $
+#      $NetBSD: devlist2h.awk,v 1.10 2005/02/27 15:19:13 perry Exp $
 #
 # Copyright (c) 1995, 1996 Christopher G. Demetriou
 # All rights reserved.
@@ -37,6 +37,7 @@
 NR == 1 {
        VERSION = $0
        gsub("\\$", "", VERSION)
+       gsub(/ $/, "", VERSION)
 
        printf("/*\t$NetBSD" "$\t*/\n\n") > dfile
        printf("/*\n") > dfile
@@ -64,7 +65,7 @@
        vendorindex[$2] = nvendors;             # record index for this name, for later.
        vendors[nvendors, 1] = $2;              # name
        vendors[nvendors, 2] = $3;              # id
-       printf("#define\tPCI_VENDOR_%s\t%s\t", vendors[nvendors, 1],
+       printf("#define\tPCI_VENDOR_%s\t%s", vendors[nvendors, 1],
            vendors[nvendors, 2]) > hfile
 
        i = 3; f = 4;
@@ -72,7 +73,7 @@
        # comments
        ocomment = oparen = 0
        if (f <= NF) {
-               printf("\t/* ") > hfile
+               printf("\t\t/* ") > hfile
                ocomment = 1;
        }
        while (f <= NF) {
@@ -109,7 +110,7 @@
        products[nproducts, 1] = $2;            # vendor name
        products[nproducts, 2] = $3;            # product id
        products[nproducts, 3] = $4;            # id
-       printf("#define\tPCI_PRODUCT_%s_%s\t%s\t", products[nproducts, 1],
+       printf("#define\tPCI_PRODUCT_%s_%s\t%s", products[nproducts, 1],
            products[nproducts, 2], products[nproducts, 3]) > hfile
 
        i=4; f = 5;
@@ -117,7 +118,7 @@
        # comments
        ocomment = oparen = 0
        if (f <= NF) {
-               printf("\t/* ") > hfile
+               printf("\t\t/* ") > hfile
                ocomment = 1;
        }
        while (f <= NF) {



Home | Main Index | Thread Index | Old Index