chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
copy: rework copy_file_atomic() to copy the specified file via O_TMPFILE if possible
[elogind.git]
/
tools
/
meson-build.sh
1
#!/bin/sh
2
set -eux
3
4
src="$1"
5
dst="$2"
6
target="$3"
7
options="$4"
8
9
[ -d "$dst" ] || meson "$src" "$dst" $options
10
11
# Locate ninja binary, on CentOS 7 it is called ninja-build, so
12
# use that name if available.
13
ninja=ninja
14
if which ninja-build >/dev/null 2>&1 ; then
15
ninja=ninja-build
16
fi
17
18
"$ninja" -C "$dst" "$target"