mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +02:00
Move manpages to doc/ subfolder
This commit is contained in:
@@ -22,31 +22,3 @@ configure_file(
|
|||||||
configuration: serviceconf,
|
configuration: serviceconf,
|
||||||
install: true
|
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
|
|
||||||
|
33
doc/meson.build
Normal file
33
doc/meson.build
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2020 Arnaud Ferraris <arnaud.ferraris@gmail.com>
|
||||||
|
#
|
||||||
|
# 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
|
@@ -66,5 +66,6 @@ mgr_deps = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
subdir('data')
|
subdir('data')
|
||||||
|
subdir('doc')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
subdir('udev')
|
subdir('udev')
|
||||||
|
Reference in New Issue
Block a user