1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# Copyright 2022 Simon McVittie
# SPDX-License-Identifier: FSFAP
bash_completion_dir = get_option('bash_completion_dir')
if bash_completion_dir == ''
bash_completion_dir = get_option('datadir') / 'bash-completion' / 'completions'
endif
configure_file(
capture : true,
command : [
'sed',
'-e',
's#pkgdatadir=.*#pkgdatadir=' + get_option('prefix') / pkgdatadir + '#g',
'@INPUT@',
],
input : files('game-data-packager'),
install : true,
install_dir : bash_completion_dir,
output : 'game-data-packager',
)
|