Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2024 23:13:43 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 87b32aa4d409 - stable/14 - tools/sdiodevs2h.awk: fix after removal of $FreeBSD$
Message-ID:  <202410092313.499NDhOt044644@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=87b32aa4d40974d1fc87a21ed457b067b95d248c

commit 87b32aa4d40974d1fc87a21ed457b067b95d248c
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-08-27 18:33:14 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-10-09 19:18:20 +0000

    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
    Reviewed by:    imp
    Differential Revision: https://reviews.freebsd.org/D46300
    
    (cherry picked from commit 499c337781bf8df7f97f612b93427b3f53dfd8bb)
---
 sys/tools/sdiodevs2h.awk | 6 ------
 1 file changed, 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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410092313.499NDhOt044644>