File: meson.build

package info (click to toggle)
hydrapaper 3.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 708 kB
  • sloc: python: 2,427; sh: 72; xml: 20; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# compile markdown to groff

pandoc_exe = find_program('pandoc', required: false)
if pandoc_exe.found()
    message('Compiling man page from markdown to groff')
    r = run_command(
        'pandoc',
        '-s',
        '-t',
        'man',
        meson.project_name() + '.1.md',
        '-o',
        meson.project_name() + '.1'
    )
    if r.returncode() != 0
        warning('Failed to compile man page')
    else
        message('Man page compilation succeeded, installing')
        install_man('hydrapaper.1')
    endif
else
    warning('Pandoc not found, skipping man page compilation')
endif