]> git.notmuchmail.org Git - notmuch/blob - doc/mkdocdeps.py
doc: Fix parallel build of roff files
[notmuch] / doc / mkdocdeps.py
1 from sys import argv
2 srcdir = argv[1]
3 builddir = argv[2]
4 outfile = argv[3]
5
6 execfile(srcdir + '/conf.py')
7
8
9 roff_files = []
10 rst_files = []
11 out=open(outfile,'w')
12 for page in man_pages:
13     rst_files = rst_files + ["{0:s}/{1:s}.rst".format(srcdir,page[0])]
14     roff_files = roff_files + ["{0:s}/man/{1:s}.{2:d}".format(builddir,page[0],page[4])]
15
16 out.write ('MAN_ROFF_FILES := ' + ' \\\n\t'.join(roff_files)+'\n')
17 out.write ('MAN_RST_FILES := ' + ' \\\n\t'.join(rst_files)+'\n')