1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

meson: use find_program() for add-git-hook.sh

On azure systemd.systemd ci, the build would fail with:
meson.build:53:0: ERROR: Program or command '/home/appuser/fuzzer/tools/add-git-hook.sh' not found or not executable

We use find_program() for all helpers, so let's do it for this one too.
This should solve the issue, whatever it exactly is.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-28 09:30:51 +01:00
parent f4c7bf9e90
commit e2d612a8e4

View File

@ -50,9 +50,12 @@ fuzzer_build = want_ossfuzz or want_libfuzzer or want_fuzzbuzz
##################################################################### #####################################################################
# Try to install the git pre-commit hook # Try to install the git pre-commit hook
git_hook = run_command(join_paths(project_source_root, 'tools/add-git-hook.sh')) add_git_hook_sh = find_program('tools/add-git-hook.sh', required : false)
if git_hook.returncode() == 0 if add_git_hook_sh.found()
git_hook = run_command(add_git_hook_sh)
if git_hook.returncode() == 0
message(git_hook.stdout().strip()) message(git_hook.stdout().strip())
endif
endif endif
##################################################################### #####################################################################