Commit 253948b8 authored by Eric Anholt's avatar Eric Anholt

Simplify manpage variable substitution for Meson.

The previous code was contorting itself to do the substitution in the
same source format as the xorg automake macros.  Now that automake is
gone, we can simplify it.
Signed-off-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@imgtec.com>
parent ad7d25fb
.ds q \N'34'
.TH rendercheck 1 __xorgversion__
.TH rendercheck 1 "rendercheck @version@" "X Version 11"
.SH NAME
rendercheck \- simple tests of the X Render extension.
.SH SYNOPSIS
......
......@@ -48,19 +48,12 @@ executable(
install: true,
)
man_xorgversion = '"rendercheck @0@" "X Version 11"'.format(project_version)
custom_target(
'manpage',
man_config = configuration_data()
man_config.set('version', project_version)
rendercheck_man = configure_file(
input: 'man/rendercheck.man',
output: 'rendercheck.1',
command: [
'sed',
'-e',
's/__xorgversion__/@0@/'.format(man_xorgversion),
'@INPUT@'
],
capture: true,
configuration: man_config,
install: true,
install_dir: join_paths(get_option('mandir'), 'man1'),
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment