aboutsummaryrefslogtreecommitdiffstats
path: root/tools/make-dissector-reg.py
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-04-11 20:03:16 +0000
committerGerald Combs <gerald@wireshark.org>2013-04-11 20:03:16 +0000
commit267a89b1f48ff391b37591ebcb95a34f6029d6a3 (patch)
tree1cdccc74d7a4f07b0936d8bf0364fc641c5d35af /tools/make-dissector-reg.py
parentfc153bf23b601428ea15e0c3c3801a5c76904b90 (diff)
Make boilerplate consistent with other generated files and recognizable
by licensecheck. svn path=/trunk/; revision=48826
Diffstat (limited to 'tools/make-dissector-reg.py')
-rwxr-xr-xtools/make-dissector-reg.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/make-dissector-reg.py b/tools/make-dissector-reg.py
index 30351f203a..8e1134d19e 100755
--- a/tools/make-dissector-reg.py
+++ b/tools/make-dissector-reg.py
@@ -37,26 +37,27 @@ if registertype == "plugin" or registertype == "plugin_wtap":
cache_filename = None
preamble = """\
/*
- * Do not modify this file.
+ * Do not modify this file. Changes will be overwritten.
*
- * It is created automatically by Makefile or Makefile.nmake.
+ * Generated automatically from %s.
*/
-"""
+""" % (sys.argv[0])
elif registertype == "dissectors":
final_filename = "register.c"
cache_filename = "register-cache.pkl"
preamble = """\
/*
- * Do not modify this file.
+ * Do not modify this file. Changes will be overwritten.
*
- * It is created automatically by the "register.c" target in
- * epan/dissectors/Makefile or Makefile.nmake using information in
- * epan/dissectors/register-cache.pkl.
+ * Generated automatically by the "register.c" target in
+ * epan/dissectors/Makefile or Makefile.nmake using
+ * %s
+ * and information in epan/dissectors/register-cache.pkl.
*
* You can force this file to be regenerated completely by deleting
* it along with epan/dissectors/register-cache.pkl.
*/
-"""
+""" % (sys.argv[0])
else:
print(("Unknown output type '%s'" % registertype))
sys.exit(1)