Git fork
at reftables-rust 34 lines 928 B view raw
1foreach script : [ 2 'git-completion.bash', 3 'git-completion.tcsh', 4 'git-completion.zsh', 5 'git-prompt.sh' 6] 7 if meson.version().version_compare('>=1.3.0') 8 test_dependencies += fs.copyfile(script) 9 else 10 configure_file( 11 input: script, 12 output: script, 13 copy: true, 14 ) 15 endif 16endforeach 17 18# We have to discern between the test dependency and the installed file. Our 19# tests assume the completion scripts to have the same name as the in-tree 20# files, but the installed filenames need to match the executable's basename. 21if meson.version().version_compare('>=1.3.0') 22 fs.copyfile('git-completion.bash', 'git', 23 install: true, 24 install_dir: get_option('datadir') / 'bash-completion/completions', 25 ) 26else 27 configure_file( 28 input: 'git-completion.bash', 29 output: 'git', 30 copy: true, 31 install: true, 32 install_dir: get_option('datadir') / 'bash-completion/completions', 33 ) 34endif