aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/mkdocdeps.py
diff options
context:
space:
mode:
authorGravatar David Bremner <david@tethera.net>2014-03-05 09:34:10 -0400
committerGravatar David Bremner <david@tethera.net>2014-03-09 10:41:09 -0300
commit6f8daa39895c600180530618abc0eb86d56500d0 (patch)
tree9601a145fac79a9e8f2d68c243719d5198868342 /doc/mkdocdeps.py
parentdf70fc4b4b7295f9f5c512c5e1e5c8c46a620944 (diff)
doc: install sphinx version of man pages
The python script mkdocdeps.py is used to import the list of man pages from the sphinx configuration to make. This will delete the (release only) target update-man-versions. This will be replaced in a followup commit.
Diffstat (limited to 'doc/mkdocdeps.py')
-rw-r--r--doc/mkdocdeps.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/mkdocdeps.py b/doc/mkdocdeps.py
new file mode 100644
index 00000000..2f4a9596
--- /dev/null
+++ b/doc/mkdocdeps.py
@@ -0,0 +1,13 @@
+from sys import argv
+conffile = argv[1]
+builddir = argv[2]
+outfile = argv[3]
+
+execfile(conffile)
+
+roff_files = []
+out=open(outfile,'w')
+for page in man_pages:
+ roff_files = roff_files + ["{0:s}/man/{1:s}.{2:d}".format(builddir,page[1],page[4])]
+
+out.write ('MAN_ROFF_FILES := ' + ' \\\n\t'.join(roff_files)+'\n')