[master] d731f47 rewrite vmod_abi.h / vcs_version.h only if git hash changed

Nils Goroll nils.goroll at uplex.de
Mon Mar 5 16:51:06 UTC 2018


commit d731f4732f4b33784b7a92dddadf0ba1ae9d34da
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Mar 5 17:42:36 2018 +0100

    rewrite vmod_abi.h / vcs_version.h only if git hash changed
    
    This got lost with a29fca70f7ccc75964bcfffb8c8ab1617fcf2bba

diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index efb178a..dfe28cd 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -837,8 +837,11 @@ try:
 except IOError:
 	i = ""
 
-if i != "/* " + v + " */":
+ident = "/* " + v + " */\n"
+
+if i != ident:
 	fo = open(vcsfn, "w")
+	fo.write(ident)
 	file_header(fo)
 	fo.write('#define VCS_Version "%s"\n' % v)
 	fo.close()


More information about the varnish-commit mailing list