From 0623dad90cb238648755776c56800d0c144d2a86 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 2 Jul 2016 19:08:48 +0200 Subject: Added 'GENERATED FILE DO NOT EDIT' to the auto-generated files See https://github.com/Reviewable/Reviewable/wiki/FAQ#how-do-i-tell-reviewable-that-a-file-is-generated-and-should-not-be-reviewed Signed-off-by: Haru --- src/plugins/constdb2doc.c | 3 ++- src/plugins/db2sql.c | 4 +++- tools/HPMHookGen/HPMDataCheckGen.pl | 2 ++ tools/HPMHookGen/HPMHookGen.pl | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/plugins/constdb2doc.c b/src/plugins/constdb2doc.c index cb0b82278..d211c46e2 100644 --- a/src/plugins/constdb2doc.c +++ b/src/plugins/constdb2doc.c @@ -177,7 +177,8 @@ void do_constdb2doc(void) constdb2doc_itemdb(); - fprintf(out_fp, "> End of list\n"); + fprintf(out_fp, "> End of list\n\n"); + fprintf(out_fp, "\n"); fclose(out_fp); } diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c index 510a56e2c..351962e26 100644 --- a/src/plugins/db2sql.c +++ b/src/plugins/db2sql.c @@ -117,7 +117,9 @@ void db2sql_fileheader(void) "-- NOTE: This file was auto-generated and should never be manually edited,\n" "-- as it will get overwritten. If you need to modify this file,\n" "-- please consider modifying the corresponding .conf file inside\n" - "-- the db folder, and then re-run the db2sql plugin.\n" + "-- the db folder, and then re-run the db2sql plugin.\n\n" + + "-- GENERATED FILE DO NOT EDIT --\n" "\n", year); } diff --git a/tools/HPMHookGen/HPMDataCheckGen.pl b/tools/HPMHookGen/HPMDataCheckGen.pl index 68751a4ad..f8712f329 100644 --- a/tools/HPMHookGen/HPMDataCheckGen.pl +++ b/tools/HPMHookGen/HPMDataCheckGen.pl @@ -91,6 +91,8 @@ print FH <<"EOF"; * as it will get overwritten. */ +/* GENERATED FILE DO NOT EDIT */ + #ifndef HPM_DATA_CHECK_H #define HPM_DATA_CHECK_H diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl index 577536313..1d6a3e122 100755 --- a/tools/HPMHookGen/HPMHookGen.pl +++ b/tools/HPMHookGen/HPMHookGen.pl @@ -485,6 +485,8 @@ my $fileheader = <<"EOF"; * NOTE: This file was auto-generated and should never be manually edited, * as it will get overwritten. */ + +/* GENERATED FILE DO NOT EDIT */ EOF foreach my $servertype (keys %keys) { -- cgit v1.2.3-60-g2f50