summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-01-24 09:21:16 +0100
committerLinus Nordberg <linus@nordu.net>2017-01-24 09:21:16 +0100
commitda9b79cb449caf73f2d27c88a453fea2b3bf1e3f (patch)
treee8dd9814c20aeedcc89d99725c499f32d155eee9 /tools
parentd08eabfdd47ccb06901335224f7bab01ced44ea2 (diff)
Add a "generated by" header to the generated file.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/compileconfig.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/compileconfig.py b/tools/compileconfig.py
index 23f0cf1..47da7f6 100755
--- a/tools/compileconfig.py
+++ b/tools/compileconfig.py
@@ -8,6 +8,7 @@ import sys
import yaml
import re
import base64
+from datetime import datetime
class Symbol(str):
pass
@@ -369,6 +370,8 @@ def gen_config(nodename, config, localconfig):
def gen_testmakefile(config, testmakefile, machines, shellvars=False):
configfile = open(testmakefile, "w")
+ print >>configfile, "#", testmakefile, "generated by", sys.argv[0], datetime.now()
+
frontendnodenames = set([node["name"] for node in config["frontendnodes"]])
storagenodenames = set([node["name"] for node in config["storagenodes"]])
signingnodenames = set([node["name"] for node in config["signingnodes"]])