From 8fc10eae44b388bee9e5bfdbc0a59c6c7d69ddd8 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Mon, 1 Nov 2021 11:23:43 +0000 Subject: Add manpage and usage help. --- meson.build | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 1e31456..beaebf2 100644 --- a/meson.build +++ b/meson.build @@ -79,21 +79,21 @@ executable( install: true ) -# scdoc = find_program('scdoc', required: get_option('man-pages')) -# if scdoc.found() -# sed = find_program('sed') -# sh = find_program('sh') -# mandir = get_option('mandir') -# manpage = 'doc/greetd-mini-greeter.1.scd' -# output = 'greetd-mini-greeter.1' -# custom_target( -# output, -# input: manpage, -# output: output, -# command: [ -# sh, '-c', '@0@ < @INPUT@ | sed "s|CSS_PATH|@1@|g;" > @2@'.format(scdoc.path(), css_location, output) -# ], -# install: true, -# install_dir: '@0@/man1'.format(mandir) -# ) -# endif +scdoc = find_program('scdoc', required: get_option('man-pages')) +if scdoc.found() + sed = find_program('sed') + sh = find_program('sh') + mandir = get_option('mandir') + manpage = 'doc/greetd-mini-wl-greeter.1.scd' + output = 'greetd-mini-wl-greeter.1' + custom_target( + output, + input: manpage, + output: output, + command: [ + sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.path(), output) + ], + install: true, + install_dir: '@0@/man1'.format(mandir) + ) +endif -- cgit v1.2.3