summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-07-02 19:08:48 +0200
committerHaru <haru@dotalux.com>2016-07-02 19:08:48 +0200
commit0623dad90cb238648755776c56800d0c144d2a86 (patch)
tree9df4d22be219f30622f47df7333a59cbc0d08f01
parent657d772c70e07afc2188c200247f73f03879884d (diff)
downloadhercules-0623dad90cb238648755776c56800d0c144d2a86.tar.gz
hercules-0623dad90cb238648755776c56800d0c144d2a86.tar.bz2
hercules-0623dad90cb238648755776c56800d0c144d2a86.tar.xz
hercules-0623dad90cb238648755776c56800d0c144d2a86.zip
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 <haru@dotalux.com>
-rw-r--r--src/plugins/constdb2doc.c3
-rw-r--r--src/plugins/db2sql.c4
-rw-r--r--tools/HPMHookGen/HPMDataCheckGen.pl2
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl2
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, "<!--GENERATED FILE DO NOT EDIT-->\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) {