]>
Commit | Line | Data |
---|---|---|
7629744a | 1 | #!/bin/sh |
9ee03516 | 2 | # SPDX-License-Identifier: LGPL-2.1-or-later |
7629744a | 3 | set -eu |
7b76fce1 | 4 | |
09422f9a DDM |
5 | if [ "${MESON_INSTALL_QUIET:-0}" = 1 ] ; then |
6 | VERBOSE="" | |
7 | else | |
8 | VERBOSE="v" | |
9 | fi | |
10 | ||
7b76fce1 ZJS |
11 | # this is needed mostly because $DESTDIR is provided as a variable, |
12 | # and we need to create the target directory... | |
13 | ||
09422f9a | 14 | mkdir -${VERBOSE}p "$(dirname "${DESTDIR:-}$2")" |
c8475239 | 15 | if [ "$(dirname $1)" = . -o "$(dirname $1)" = .. ]; then |
09422f9a | 16 | ln -${VERBOSE}fs -T -- "$1" "${DESTDIR:-}$2" |
7b76fce1 | 17 | else |
09422f9a | 18 | ln -${VERBOSE}fs -T --relative -- "${DESTDIR:-}$1" "${DESTDIR:-}$2" |
7b76fce1 | 19 | fi |