2014-04-05 19:31:05 +02:00
|
|
|
import sys
|
2014-03-05 14:34:10 +01:00
|
|
|
|
2014-04-05 19:31:05 +02:00
|
|
|
srcdir = sys.argv[1]
|
|
|
|
builddir = sys.argv[2]
|
|
|
|
outfile = sys.argv[3]
|
2014-03-20 01:48:03 +01:00
|
|
|
|
2014-04-05 19:31:05 +02:00
|
|
|
sys.path.insert(0, srcdir)
|
|
|
|
import conf
|
2014-03-05 14:34:10 +01:00
|
|
|
|
|
|
|
roff_files = []
|
2014-03-13 04:21:14 +01:00
|
|
|
rst_files = []
|
2014-03-05 14:34:10 +01:00
|
|
|
out=open(outfile,'w')
|
2014-04-05 19:31:05 +02:00
|
|
|
for page in conf.man_pages:
|
2014-03-20 01:48:03 +01:00
|
|
|
rst_files = rst_files + ["{0:s}/{1:s}.rst".format(srcdir,page[0])]
|
2014-03-13 04:21:15 +01:00
|
|
|
roff_files = roff_files + ["{0:s}/man/{1:s}.{2:d}".format(builddir,page[0],page[4])]
|
2014-03-05 14:34:10 +01:00
|
|
|
|
|
|
|
out.write ('MAN_ROFF_FILES := ' + ' \\\n\t'.join(roff_files)+'\n')
|
2014-03-13 04:21:14 +01:00
|
|
|
out.write ('MAN_RST_FILES := ' + ' \\\n\t'.join(rst_files)+'\n')
|