]> git.ipfire.org Git - thirdparty/systemd.git/blame - tools/meson-build.sh
shell-completion: replace "gdb" verb with "debug" for coredumpctl
[thirdparty/systemd.git] / tools / meson-build.sh
CommitLineData
b68dfb9e
ZJS
1#!/bin/sh
2set -eux
3
4src="$1"
5dst="$2"
6target="$3"
7options="$4"
8
0a924a77 9[ -f "$dst/ninja.build" ] || meson "$src" "$dst" $options
63554ed9
FB
10
11# Locate ninja binary, on CentOS 7 it is called ninja-build, so
12# use that name if available.
13ninja=ninja
14if which ninja-build >/dev/null 2>&1 ; then
15 ninja=ninja-build
16fi
17
18"$ninja" -C "$dst" "$target"