lib/async_req:lib/async_req
buildtools:buildtools third_party/waf:third_party/waf''')
-manpages = [
+manpages_binary = [
'ctdb.1',
- 'ctdb.7',
- 'ctdb_diagnostics.1',
'ctdbd.1',
- 'ctdbd.conf.5',
+ 'ltdbtool.1',
+ 'ping_pong.1'
+]
+
+manpages_misc = [
+ 'ctdb_diagnostics.1',
'ctdbd_wrapper.1',
- 'ctdb-etcd.7',
+ 'onnode.1',
+ 'ctdbd.conf.5',
+ 'ctdb.7',
'ctdb-statistics.7',
'ctdb-tunables.7',
- 'ltdbtool.1',
- 'onnode.1',
- 'ping_pong.1'
+]
+
+manpages_etcd = [
+ 'ctdb-etcd.7',
]
Logs.info("xsltproc unavailable, checking for pre-built manpages")
conf.env.ctdb_prebuilt_manpages = []
+ manpages = manpages_binary + manpages_misc + manpages_etcd
for m in manpages:
if os.path.exists(os.path.join("doc", m)):
Logs.info(" %s: yes" % (m))
(sed_expr1, sed_expr2, sed_expr3, sed_expr4, sed_expr5,
sed_expr6, sed_expr7)
- for f in manpages:
+ manpages_extra = manpages_misc + manpages_etcd
+ for f in manpages_binary + manpages_extra:
x = '%s.xml' % (f)
bld.SAMBA_GENERATOR(x,
source=os.path.join('doc', x),
rule='sed %s ${SRC} > ${TGT}' % (sed_cmdline))
if bld.env.ctdb_generate_manpages:
- bld.MANPAGES('''onnode.1 ctdbd_wrapper.1 ctdbd.conf.5
- ctdb.7 ctdb-statistics.7 ctdb-tunables.7
- ctdb_diagnostics.1 ctdb-etcd.7''',
- True)
+ bld.MANPAGES(' '.join(manpages_extra), True)
else:
for m in bld.env.ctdb_prebuilt_manpages:
bld.SAMBA_GENERATOR(m,
if ret != 0:
print('Command "%s" failed with exit status %d' % (cmd, ret))
sys.exit(ret)
+ manpages = manpages_binary + manpages_misc + manpages_etcd
for t in manpages:
samba_dist.DIST_FILES('ctdb/doc/%s:doc/%s' % (t, t), extend=True)
samba_dist.DIST_FILES('ctdb/doc/%s.html:doc/%s.html' % (t, t),