summaryrefslogtreecommitdiff
path: root/man/meson.build
blob: 40287d53ebbfd03a3402f3449b8e11bff51ac36c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
custom_target(
    'twm.1',
    build_by_default: true,
    capture: true,
    input: files('twm.man'),
    output: 'twm.1',
    install: true,
    install_dir: get_option('mandir'),
    command: [
        find_program('sed'),
        '@INPUT@',
        '-e', 's#__appmansuffix__#1#g',
        '-e', 's#__miscmansuffix__#7#g',
        '-e', 's#__datadir__#@0@#g'.format(
            get_option('prefix') / get_option('datadir')
        ),
        '-e', 's#__projectroot__#@0@#g'.format(
            meson.project_source_root()
        ),
        '-e', 's#__xorgversion__#"twm @0@" "X Version 11"#g'.format(
            meson.project_version()
        ),
    ],
)