]> git.ipfire.org Git - thirdparty/systemd.git/blame - tools/meson-make-symlink.sh
Merge pull request #7469 from kinvolk/dongsu/nspawn-netns
[thirdparty/systemd.git] / tools / meson-make-symlink.sh
CommitLineData
86b3ca7a 1#!/bin/sh -eu
7b76fce1
ZJS
2
3# this is needed mostly because $DESTDIR is provided as a variable,
4# and we need to create the target directory...
5
dc25d2ad 6mkdir -vp "$(dirname "${DESTDIR:-}$2")"
7b76fce1 7if [ "$(dirname $1)" = . ]; then
b884196c 8 ln -vfs -T "$1" "${DESTDIR:-}$2"
7b76fce1 9else
b884196c 10 ln -vfs -T --relative "${DESTDIR:-}$1" "${DESTDIR:-}$2"
7b76fce1 11fi