From be1ae18592efcb8d31704614ae820dd2eae03d49 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Sat, 19 Feb 2022 15:02:29 +0100 Subject: [PATCH] Move manpages to doc/ subfolder --- data/meson.build | 28 --------------------------- {data => doc}/eg25-manager.5.scd | 0 {data => doc}/eg25-manager.8.scd | 0 doc/meson.build | 33 ++++++++++++++++++++++++++++++++ meson.build | 1 + 5 files changed, 34 insertions(+), 28 deletions(-) rename {data => doc}/eg25-manager.5.scd (100%) rename {data => doc}/eg25-manager.8.scd (100%) create mode 100644 doc/meson.build diff --git a/data/meson.build b/data/meson.build index 4da2c6e..f1fc8f0 100644 --- a/data/meson.build +++ b/data/meson.build @@ -22,31 +22,3 @@ configure_file( configuration: serviceconf, install: true ) - -scdoc = dependency('scdoc', native: true, required: false) -if scdoc.found() - scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) - - foreach section: [5, 8] - name = 'eg25-manager' - out = '@0@.@1@'.format(name, section) - - preprocessed = configure_file( - input: '@0@.scd'.format(out), - output: '@BASENAME@.preprocessed', - configuration: { - 'eg25_confdir': eg25_confdir, - 'eg25_datadir': eg25_datadir, - } - ) - - custom_target( - out, - output: out, - input: preprocessed, - command: ['sh', '-c', '@0@ < @INPUT@'.format(scdoc_prog.path())], - capture: true, - install: true, - install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section))) - endforeach -endif diff --git a/data/eg25-manager.5.scd b/doc/eg25-manager.5.scd similarity index 100% rename from data/eg25-manager.5.scd rename to doc/eg25-manager.5.scd diff --git a/data/eg25-manager.8.scd b/doc/eg25-manager.8.scd similarity index 100% rename from data/eg25-manager.8.scd rename to doc/eg25-manager.8.scd diff --git a/doc/meson.build b/doc/meson.build new file mode 100644 index 0000000..975d233 --- /dev/null +++ b/doc/meson.build @@ -0,0 +1,33 @@ +# +# Copyright (C) 2020 Arnaud Ferraris +# +# SPDX-License-Identifier: GPL-3.0-or-later +# + +scdoc = dependency('scdoc', native: true, required: false) +if scdoc.found() + scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) + + foreach section: [5, 8] + name = 'eg25-manager' + out = '@0@.@1@'.format(name, section) + + preprocessed = configure_file( + input: '@0@.scd'.format(out), + output: '@BASENAME@.preprocessed', + configuration: { + 'eg25_confdir': eg25_confdir, + 'eg25_datadir': eg25_datadir, + } + ) + + custom_target( + out, + output: out, + input: preprocessed, + command: ['sh', '-c', '@0@ < @INPUT@'.format(scdoc_prog.path())], + capture: true, + install: true, + install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section))) + endforeach +endif diff --git a/meson.build b/meson.build index 535927a..d7eae66 100644 --- a/meson.build +++ b/meson.build @@ -66,5 +66,6 @@ mgr_deps = [ ] subdir('data') +subdir('doc') subdir('src') subdir('udev')