summaryrefslogtreecommitdiff
path: root/tools/compileconfig.py
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2017-07-26 01:34:57 +0200
committerLinus Nordberg <linus@nordu.net>2017-07-26 13:19:39 +0200
commit4f8f473db95c2262c3f387aed3d4459555ac52e2 (patch)
tree9a4f3706779c7b0a5c4ea17c06305e1b263ae7a0 /tools/compileconfig.py
parente0be874a28c9ee9c9b07e3cff89301cd58cfd31f (diff)
Output optional and defaults to configuration man page
Diffstat (limited to 'tools/compileconfig.py')
-rwxr-xr-xtools/compileconfig.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/compileconfig.py b/tools/compileconfig.py
index 199e446..a023a6b 100755
--- a/tools/compileconfig.py
+++ b/tools/compileconfig.py
@@ -10,6 +10,7 @@ import re
import base64
from datetime import datetime
import manpage
+import configschema
class Symbol(str):
pass
@@ -562,8 +563,8 @@ def printnodenames(config):
print " ".join(frontendnodenames|storagenodenames|signingnodenames|mergenodenames|statusservernodenames)
def gen_manpage(manpagedir):
- manpage.rewrite_manpage(manpagedir + "/catlfish-log.cfg.in.5.adoc", globalconfigschema, "Catlfish", "Catlfish Manual", "CATLFISH-LOG.CFG.IN(5)", "catlfish-log.cfg.in - catlfish log configuration")
- manpage.rewrite_manpage(manpagedir + "/catlfish-node.cfg.5.adoc", localconfigschema, "Catlfish", "Catlfish Manual", "CATLFISH-NODE.CFG(5)", "catlfish-node.cfg - catlfish node configuration")
+ manpage.rewrite_manpage(manpagedir + "/catlfish-log.cfg.in.5.adoc", (configschema.globalconfigschema, configschema.globalconfigdefaults, configschema.globalconfigoptionals), "Catlfish", "Catlfish Manual", "CATLFISH-LOG.CFG.IN(5)", "catlfish-log.cfg.in - catlfish log configuration")
+ manpage.rewrite_manpage(manpagedir + "/catlfish-node.cfg.5.adoc", (configschema.localconfigschema, configschema.localconfigdefaults, configschema.localconfigoptionals), "Catlfish", "Catlfish Manual", "CATLFISH-NODE.CFG(5)", "catlfish-node.cfg - catlfish node configuration")
def main():
parser = argparse.ArgumentParser(description="")