mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
build: Fix installing active_runtime.json on meson without DESTDIR
The -u setting for bash reported an error if DESTDIR is not set. The syntax ${A-foo} returns the content of A if set, or the default "foo" if not, "foo" being the empty string in this case.
This commit is contained in:
parent
a09bc568d5
commit
605e4e2027
|
@ -4,11 +4,11 @@
|
|||
#
|
||||
# Used by the Meson build only.
|
||||
|
||||
sysconfdir="$DESTDIR"/"$1"
|
||||
sysconfdir="${DESTDIR-}"/"$1"
|
||||
manifest="$2"
|
||||
xrversion="$3"
|
||||
|
||||
runtime_path="$sysconfdir"/xdg/openxr/"$xrversion"/active_runtime.json
|
||||
|
||||
mkdir -p "$sysconfdir"/xdg/openxr/"$xrversion"
|
||||
ln -s "$manifest" "$runtime_path"
|
||||
ln -sf "$manifest" "$runtime_path"
|
||||
|
|
Loading…
Reference in a new issue