]> git.ipfire.org Git - thirdparty/systemd.git/blob - tools/meson-make-symlink.sh
test-network: use wait-online in NetworkdBondTests
[thirdparty/systemd.git] / tools / meson-make-symlink.sh
1 #!/bin/sh
2 set -eu
3
4 # this is needed mostly because $DESTDIR is provided as a variable,
5 # and we need to create the target directory...
6
7 mkdir -vp "$(dirname "${DESTDIR:-}$2")"
8 if [ "$(dirname $1)" = . ]; then
9 ln -vfs -T "$1" "${DESTDIR:-}$2"
10 else
11 ln -vfs -T --relative "${DESTDIR:-}$1" "${DESTDIR:-}$2"
12 fi