Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2023 05:40:39 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 94b73d30ef2b - main - usbdevs2h: Ignore First Line and stop generating $FreeBSD$
Message-ID:  <202308160540.37G5ed0h033767@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=94b73d30ef2b0d85d4834a1e4dc29e0457a8faef

commit 94b73d30ef2b0d85d4834a1e4dc29e0457a8faef
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-08-16 05:32:04 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-08-16 05:34:18 +0000

    usbdevs2h: Ignore First Line and stop generating $FreeBSD$
    
    Just ignore the first line of the usbdevs file. And stop recording what
    the usbdevs* files were generated from. It's said '$FreeBSD$' for years
    now...
    
    Sponsored by:           Netflix
---
 sys/tools/usbdevs2h.awk | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/tools/usbdevs2h.awk b/sys/tools/usbdevs2h.awk
index 42e57cf190a8..25c29c798b3e 100644
--- a/sys/tools/usbdevs2h.awk
+++ b/sys/tools/usbdevs2h.awk
@@ -45,9 +45,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
 }
 
@@ -234,8 +231,6 @@ line=0;
 while ((getline < srcfile) > 0) {
 	line++;
 	if (line == 1) {
-		VERSION = $0
-		gsub("\\$", "", VERSION)
 		if (dfile)
 			header(dfile)
 		if (hfile)



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