pacman/scripts/libmakepkg/lint_config/meson.build
Allan McRae 286e776eda lint_config: move PACKAGER check into its own function
The check for the format of the PACKAGER variable did not align with the
rest of the function where it was located.  Move to its own function.

Signed-off-by: Allan McRae <allan@archlinux.org>
2025-01-08 03:06:37 +00:00

22 lines
498 B
Meson

libmakepkg_module = 'lint_config'
sources = [
'ext.sh.in',
'nproc.sh.in',
'packager.sh.in',
'paths.sh.in',
'source_date_epoch.sh.in',
'variable.sh.in',
]
foreach src : sources
output_dir = join_paths(get_option('datadir'), 'makepkg', libmakepkg_module)
custom_target(
libmakepkg_module + '_' + src.underscorify(),
command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@' ],
input : src,
output : '@BASENAME@',
install : true,
install_dir : output_dir)
endforeach