Avoid literal @generated tag in file-generating scripts

We don't want the generator itself tagged as a generated file.

Reviewed by:	cem
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D20182
This commit is contained in:
emaste 2019-05-08 13:35:51 +00:00
parent c9bcc5c56f
commit db5d04b9f4
2 changed files with 8 additions and 2 deletions

View File

@ -422,9 +422,12 @@ for (file_i = 0; file_i < num_files; file_i++) {
ctmpfilename = cfilename ".tmp";
htmpfilename = hfilename ".tmp";
# Avoid a literal generated file tag here.
generated = "@" "generated";
common_head = \
"/*\n" \
" * This file is @generated automatically.\n" \
" * This file is " generated " automatically.\n" \
" * Do not modify anything in here by hand.\n" \
" *\n" \
" * Created from source file\n" \

View File

@ -139,9 +139,12 @@ if (!cfile && !hfile && !pfile && !qfile)
if (!srcfile)
usage();
# Avoid a literal generated file tag here.
generated = "@" "generated";
common_head = \
"/*\n" \
" * This file is @generated automatically.\n" \
" * This file is " generated " automatically.\n" \
" * Do not modify anything in here by hand.\n" \
" *\n" \
" * Created from $FreeBSD$\n" \