Blame doc/man/meson.build
|
Packit |
c86169 |
man1_dir = join_paths(session_mandir, 'man1')
|
|
Packit |
c86169 |
|
|
Packit |
c86169 |
xsltproc_cmd = [
|
|
Packit |
c86169 |
xsltproc,
|
|
Packit |
c86169 |
'--output', '@OUTPUT@',
|
|
Packit |
c86169 |
'--nonet',
|
|
Packit |
c86169 |
'--stringparam', 'man.output.quietly', '1',
|
|
Packit |
c86169 |
'--stringparam', 'funcsynopsis.style', 'ansi',
|
|
Packit |
c86169 |
'--stringparam', 'man.th.extra1.suppress', '1',
|
|
Packit |
c86169 |
'--stringparam', 'man.authors.section.enabled', '0',
|
|
Packit |
c86169 |
'--stringparam', 'man.copyright.section.enabled', '0',
|
|
Packit |
c86169 |
'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
|
|
Packit |
c86169 |
'@INPUT@'
|
|
Packit |
c86169 |
]
|
|
Packit |
c86169 |
|
|
Packit |
c86169 |
mans = ['gnome-session-inhibit']
|
|
Packit |
c86169 |
|
|
Packit |
c86169 |
if enable_session_selector
|
|
Packit |
c86169 |
mans += 'gnome-session-selector'
|
|
Packit |
c86169 |
endif
|
|
Packit |
c86169 |
|
|
Packit |
c86169 |
foreach man: mans
|
|
Packit |
c86169 |
output = man + '.1'
|
|
Packit |
c86169 |
|
|
Packit |
c86169 |
custom_target(
|
|
Packit |
c86169 |
output,
|
|
Packit |
c86169 |
input: man + '.xml',
|
|
Packit |
c86169 |
output: output,
|
|
Packit |
c86169 |
command: xsltproc_cmd,
|
|
Packit |
c86169 |
install: true,
|
|
Packit |
c86169 |
install_dir: man1_dir
|
|
Packit |
c86169 |
)
|
|
Packit |
c86169 |
endforeach
|
|
Packit |
c86169 |
|
|
Packit |
c86169 |
man_data = files(
|
|
Packit |
c86169 |
'gnome-session.1',
|
|
Packit |
c86169 |
'gnome-session-quit.1'
|
|
Packit |
c86169 |
)
|
|
Packit |
c86169 |
|
|
Packit |
c86169 |
install_data(
|
|
Packit |
c86169 |
man_data,
|
|
Packit |
c86169 |
install_dir: man1_dir
|
|
Packit |
c86169 |
)
|