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