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 | |
parent | 7d828d7092b5bd008d9942b86e2ecbdc780bcd68 (diff) |
Don't generate pcmciadevs_data.h anymore.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pcmcia/Makefile | 6 | ||||
-rw-r--r-- | sys/dev/pcmcia/devlist2h.awk | 52 |
2 files changed, 4 insertions, 54 deletions
diff --git a/sys/dev/pcmcia/Makefile b/sys/dev/pcmcia/Makefile index e60fd0584f2..dd3696cb1c8 100644 --- a/sys/dev/pcmcia/Makefile +++ b/sys/dev/pcmcia/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.2 1998/09/14 19:20:54 deraadt Exp $ +# $OpenBSD: Makefile,v 1.3 1999/04/30 07:28:25 fgsch Exp $ # $NetBSD: Makefile.pcmciadevs,v 1.1 1998/07/19 17:28:15 christos Exp $ AWK= awk -pcmciadevs.h pcmciadevs_data.h: pcmciadevs devlist2h.awk - /bin/rm -f pcmciadevs.h pcmciadevs_data.h +pcmciadevs.h: pcmciadevs devlist2h.awk + /bin/rm -f pcmciadevs.h ${AWK} -f devlist2h.awk pcmciadevs 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 } |