miidevs2h: Ignore the first line

The first line hasn't contained version information in years. Ignore it
entirely.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2023-08-15 23:33:18 -06:00
parent 94b73d30ef
commit 021c4fa6b0

View File

@ -93,16 +93,9 @@ BEGIN {
hfile="miidevs.h"
}
NR == 1 {
VERSION = $0
gsub("\\$", "", VERSION)
printf("/* \$FreeBSD\$ */\n\n") > hfile
printf("/*\n") > hfile
printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \
> hfile
printf(" *\n") > hfile
printf(" * generated from:\n") > hfile
printf(" *\t%s\n", VERSION) > hfile
printf(" */\n") > hfile
next