diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2024-08-27 18:33:14 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2024-08-27 18:33:14 +0000 |
commit | 499c337781bf8df7f97f612b93427b3f53dfd8bb (patch) | |
tree | c45585998676c30aee9374db3b92d0d0c62b6699 | |
parent | 9c0cce328363bd62f3c9add67bea7422208d9903 (diff) |
tools/sdiodevs2h.awk: fix after removal of $FreeBSD$
The input file used to have a $FreeBSD$ tag on the first line and we
recorded that in the generated files to know which versions they were
based on. With the removal of $FreeBSD$ the logic was not quite
correct anymore; fix that to generate proper header files again.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D46300
-rw-r--r-- | sys/tools/sdiodevs2h.awk | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/tools/sdiodevs2h.awk b/sys/tools/sdiodevs2h.awk index 1cddd6c1f5d0..818bdef58762 100644 --- a/sys/tools/sdiodevs2h.awk +++ b/sys/tools/sdiodevs2h.awk @@ -44,9 +44,6 @@ function header(file) printf("/*\n") > file printf(" * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ > file - printf(" *\n") > file - printf(" * generated from:\n") > file - printf(" *\t%s\n", VERSION) > file printf(" */\n") > file } @@ -233,13 +230,10 @@ line=0; while ((getline < srcfile) > 0) { line++; if (line == 1) { - VERSION = $0 - gsub("\\$", "", VERSION) if (dfile) header(dfile) if (hfile) header(hfile) - continue; } if ($1 == "vendor") { vendor(hfile) |