1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
xsltproc = find_program('xsltproc', required: false)
assert(xsltproc.found(), 'xsltproc is required for man pages generation')
xsltproc_cmd = [
xsltproc,
'--output', '@OUTPUT@',
'--nonet',
'--stringparam', 'man.output.quietly', '1',
'--stringparam', 'funcsynopsis.style', 'ansi',
'--stringparam', 'man.th.extra1.suppress', '1',
'--stringparam', 'man.authors.section.enabled', '0',
'--stringparam', 'man.copyright.section.enabled', '0',
'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
'@INPUT@'
]
mans = [
['gvfs-cat', 'gio cat'],
['gvfs-copy', 'gio copy'],
['gvfs-info', 'gio info'],
['gvfs-less', ''],
['gvfs-ls', 'gio list'],
['gvfs-mime', 'gio mime'],
['gvfs-mkdir', 'gio mkdir'],
['gvfs-monitor-dir', 'gio monitor'],
['gvfs-monitor-file', 'gio monitor'],
['gvfs-mount', 'gio mount'],
['gvfs-move', 'gio move'],
['gvfs-open', 'gio open'],
['gvfs-rename', 'gio rename'],
['gvfs-rm', 'gio remove'],
['gvfs-save', 'gio save'],
['gvfs-set-attribute', 'gio set'],
['gvfs-trash', 'gio trash'],
['gvfs-tree', 'gio tree'],
['gvfsd', ''],
['gvfsd-fuse', ''],
['gvfsd-metadata', '']
]
foreach man: mans
if man[1].strip() == ''
xml = man[0] + '.xml'
else
conf = configuration_data()
conf.set('original', man[0])
conf.set('replacement', man[1])
xml = configure_file(
input: 'deprecated.xml.in',
output: man[0] + '.xml',
configuration: conf
)
endif
output = man[0] + '.1'
custom_target(
output,
input: xml,
output: output,
command: xsltproc_cmd,
install: true,
install_dir: join_paths(gvfs_mandir, 'man1')
)
endforeach
man = 'gvfs'
output = man + '.7'
custom_target(
output,
input: man + '.xml',
output: output,
command: xsltproc_cmd,
install: true,
install_dir: join_paths(gvfs_mandir, 'man7')
)
|