diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 1999-04-30 07:28:26 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 1999-04-30 07:28:26 +0000 |
commit | 986cb585104f7b007212ab474b06042d6d074b32 (patch) | |
tree | b555992dbd81c87309bcb10d6cdff8bd0004ae39 /sys/dev/pcmcia/devlist2h.awk | |
parent | 7d828d7092b5bd008d9942b86e2ecbdc780bcd68 (diff) |
Don't generate pcmciadevs_data.h anymore.
Diffstat (limited to 'sys/dev/pcmcia/devlist2h.awk')
-rw-r--r-- | sys/dev/pcmcia/devlist2h.awk | 52 |
1 files changed, 1 insertions, 51 deletions
diff --git a/sys/dev/pcmcia/devlist2h.awk b/sys/dev/pcmcia/devlist2h.awk index c077fce7736..9e05e17fe33 100644 --- a/sys/dev/pcmcia/devlist2h.awk +++ b/sys/dev/pcmcia/devlist2h.awk @@ -1,5 +1,5 @@ #! /usr/bin/awk -f -# $OpenBSD: devlist2h.awk,v 1.1 1998/09/11 10:47:14 fgsch Exp $ +# $OpenBSD: devlist2h.awk,v 1.2 1999/04/30 07:28:25 fgsch Exp $ # $NetBSD: devlist2h.awk,v 1.2 1998/07/22 11:47:13 christos Exp $ # # Copyright (c) 1998, Christos Zoulas @@ -60,22 +60,12 @@ function collectline(f, line) { } BEGIN { nproducts = nvendors = 0 - dfile="pcmciadevs_data.h" hfile="pcmciadevs.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) - printf("/*\t\$OpenBSD\$\t*/\n\n") > dfile - printf("/*\n") > dfile - printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ - > dfile - printf(" *\n") > dfile - printf(" * generated from:\n") > dfile - printf(" *\t%s\n", VERSION) > dfile - printf(" */\n") > dfile - printf("/*\t\$OpenBSD\$\t*/\n\n") > hfile printf("/*\n") > hfile printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ @@ -150,44 +140,4 @@ $1 == "product" { if ($0 == "") blanklines++ print $0 > hfile - if (blanklines < 2) - print $0 > dfile -} -END { - # print out the match tables - - printf("\n") > dfile - - printf("struct pcmcia_knowndev pcmcia_knowndevs[] = {\n") > dfile - for (i = 1; i <= nproducts; i++) { - printf("\t{\n") > dfile - if (products[i, 3] == -1) { - printf("\t PCMCIA_VENDOR_UNKNOWN, PCMCIA_PRODUCT_%s_%s,\n", - products[i, 1], products[i, 2]) > dfile - } else { - printf("\t PCMCIA_VENDOR_%s, PCMCIA_PRODUCT_%s_%s,\n", - products[i, 1], products[i, 1], products[i, 2]) > dfile - } - printf("\t PCMCIA_CIS_%s_%s,\n", - products[i, 1], products[i, 2]) > dfile - printf("\t ") > dfile - printf("0") > dfile - printf(",\n") > dfile - - vendi = vendorindex[products[i, 1]]; - printf("\t \"%s\",\n", vendors[vendi, 3]) > dfile - printf("\t \"%s\"\t},\n", products[i, 5]) > dfile - printf("\t},\n") > dfile - } - for (i = 1; i <= nvendors; i++) { - printf("\t{\n") > dfile - printf("\t PCMCIA_VENDOR_%s, 0,\n", vendors[i, 1]) > dfile - printf("\t PCMCIA_KNOWNDEV_NOPROD,\n") > dfile - printf("\t PCMCIA_CIS_INVALID,\n") > dfile - printf("\t \"%s\",\n", vendors[i, 3]) > dfile - printf("\t NULL,\n") > dfile - printf("\t},\n") > dfile - } - printf("\t{ 0, 0, { NULL, NULL, NULL, NULL }, 0, NULL, NULL, }\n") > dfile - printf("};\n") > dfile } |