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