git: 70b875694e35 - stable/13 - make_*_driver.sh: Don't include $FreeBSD$ in generated files

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 24 Oct 2023 18:37:02 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=70b875694e352e6c1ea6a3cd90e554381046a58c

commit 70b875694e352e6c1ea6a3cd90e554381046a58c
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-09-25 14:46:09 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-10-24 18:13:18 +0000

    make_*_driver.sh: Don't include $FreeBSD$ in generated files
    
    Reviewed by:    imp, emaste
    Differential Revision:  https://reviews.freebsd.org/D41950
    
    (cherry picked from commit 97232e04ca07dffeef629c1628f1cc95f062b41a)
---
 share/examples/drivers/make_device_driver.sh | 8 --------
 share/examples/drivers/make_pseudo_driver.sh | 6 ------
 2 files changed, 14 deletions(-)

diff --git a/share/examples/drivers/make_device_driver.sh b/share/examples/drivers/make_device_driver.sh
index 3ed8d784c1c0..5b8f8efa6469 100755
--- a/share/examples/drivers/make_device_driver.sh
+++ b/share/examples/drivers/make_device_driver.sh
@@ -34,8 +34,6 @@ else
 fi
 UPPER=`echo ${1} |tr "[:lower:]" "[:upper:]"`
 
-RCS_KEYWORD=FreeBSD
-
 if [ -d ${TOP}/modules/${1} ]; then
 	echo "There appears to already be a module called ${1}"
 	echo -n "Should it be overwritten? [Y]"
@@ -90,7 +88,6 @@ DONE
 #######################################################################
 cat >${TOP}/i386/conf/${UPPER} <<DONE
 # Configuration file for kernel type: ${UPPER}
-# \$${RCS_KEYWORD}$
 
 files		"${TOP}/conf/files.${UPPER}"
 
@@ -142,9 +139,6 @@ cat >${TOP}/dev/${1}/${1}.c <<DONE
  * hopefully it will make it's way into the handbook.
  */
 
-#include <sys/cdefs.h>
-__FBSDID("\$${RCS_KEYWORD}$");
-
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/conf.h>		/* cdevsw stuff */
@@ -956,8 +950,6 @@ fi
 
 cat >${TOP}/modules/${1}/Makefile <<DONE
 #	${UPPER} Loadable Kernel Module
-#
-# \$${RCS_KEYWORD}: $
 
 .PATH:  \${.CURDIR}/../../dev/${1}
 KMOD    = ${1}
diff --git a/share/examples/drivers/make_pseudo_driver.sh b/share/examples/drivers/make_pseudo_driver.sh
index 159fd03bb709..5d6d09aa9648 100644
--- a/share/examples/drivers/make_pseudo_driver.sh
+++ b/share/examples/drivers/make_pseudo_driver.sh
@@ -74,7 +74,6 @@ DONE
 
 cat >${TOP}/i386/conf/${UPPER} <<DONE
 # Configuration file for kernel type: ${UPPER}
-# \$FreeBSD\$
 
 files		"${TOP}/conf/files.${UPPER}"
 
@@ -120,9 +119,6 @@ cat >${TOP}/dev/${1}/${1}.c <<DONE
  * ${1} driver
  */
 
-#include <sys/cdefs.h>
-__FBSDID("\$FreeBSD\$");
-
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/kernel.h>		/* SYSINIT stuff */
@@ -389,8 +385,6 @@ fi
 
 cat >${TOP}/modules/${1}/Makefile <<DONE
 #	${UPPER} Loadable Kernel Module
-#
-# \$FreeBSD\$
 
 .PATH:  \${.CURDIR}/../../dev/${1}
 KMOD    = ${1}