[master] 7a2a983 Output correct tool name.
Lasse Karstensen
lkarsten at varnish-software.com
Tue May 13 11:55:59 CEST 2014
commit 7a2a9836424092dbd2807cd81751f1b9de19c26e
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date: Tue May 13 11:45:14 2014 +0200
Output correct tool name.
And avoid hardcoding it, in case we change it in the future
some time.
diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index b9d7c95..9dc2c4b 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -39,6 +39,7 @@
import sys
import re
+from os.path import basename
if len(sys.argv) == 2:
specfile = sys.argv[1]
@@ -69,10 +70,10 @@ def file_header(fo):
fo.write("""/*
* NB: This file is machine generated, DO NOT EDIT!
*
- * Edit vmod.vcc and run vmod.py instead
+ * Edit vmod.vcc and run %s instead
*/
-""")
+""" % basename(__file__))
#######################################################################
More information about the varnish-commit
mailing list