mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-03 12:28:07 +00:00
605e4e2027
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.
15 lines
346 B
Bash
15 lines
346 B
Bash
#!/bin/sh -eux
|
|
# Copyright 2019, Drew DeVault <sir@cmpwn.com>
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
#
|
|
# Used by the Meson build only.
|
|
|
|
sysconfdir="${DESTDIR-}"/"$1"
|
|
manifest="$2"
|
|
xrversion="$3"
|
|
|
|
runtime_path="$sysconfdir"/xdg/openxr/"$xrversion"/active_runtime.json
|
|
|
|
mkdir -p "$sysconfdir"/xdg/openxr/"$xrversion"
|
|
ln -sf "$manifest" "$runtime_path"
|