File: meson.build

package info (click to toggle)
game-data-packager 87
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 33,392 kB
  • sloc: python: 15,387; sh: 704; ansic: 95; makefile: 50
file content (22 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (3)
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',
)