git
[Ported from github.com/git/git] Sync with Git 2.56.1
Brought by drakestapleton
git / contrib / completion / meson.build
| 1 | foreach script : [ |
| 2 | 'git-completion.bash', |
| 3 | 'git-completion.tcsh', |
| 4 | 'git-completion.zsh', |
| 5 | 'git-prompt.sh' |
| 6 | ] |
| 7 | # Note that we intentionally don't use `fs.copyfile()` here because we'd have |
| 8 | # to add it to our test dependencies in that case, but that creates a |
| 9 | # chicken-and-egg situation between including "t/" or "contrib/" first. |
| 10 | configure_file( |
| 11 | input: script, |
| 12 | output: script, |
| 13 | copy: true, |
| 14 | ) |
| 15 | endforeach |
| 16 | |
| 17 | # We have to discern between the test dependency and the installed file. Our |
| 18 | # tests assume the completion scripts to have the same name as the in-tree |
| 19 | # files, but the installed filenames need to match the executable's basename. |
| 20 | configure_file( |
| 21 | input: 'git-completion.bash', |
| 22 | output: 'git', |
| 23 | copy: true, |
| 24 | install: true, |
| 25 | install_dir: get_option('datadir') / 'bash-completion/completions', |
| 26 | ) |