2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # shellcheck disable=SC2154,SC2174
7 while [ $i -lt $# ] ; do
9 eval target
="\${$((i + 1))}"
10 eval unit
="\${$((i + 2))}"
12 if [ "${MESON_INSTALL_QUIET:-0}" = 1 ] ; then
19 */?
*) # a path, but not just a slash at the end
20 dir
="${DESTDIR:-}${target}"
23 dir
="${DESTDIR:-}${unitdir}/${target}"
27 unitpath
="${DESTDIR:-}${unitdir}/${unit}"
31 mkdir
-${VERBOSE}p
-m 0755 "$dir"
34 mkdir
-${VERBOSE}p
-m 0755 "$(dirname "$dir")"
38 ln -${VERBOSE}fs
--relative "$unitpath" "$dir"