mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
c84752398b
Unfortunately meson does not install symlinks, but copies the symlink destination instead. So symlinks need to be created by a script. This commit adds both symlinks in test/testsuite-08.units/ and meson scriptlet calls. Strictly speaking, the first is not necessary, since nothing reads stuff directly from the source tree.
13 lines
344 B
Bash
Executable File
13 lines
344 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
# this is needed mostly because $DESTDIR is provided as a variable,
|
|
# and we need to create the target directory...
|
|
|
|
mkdir -vp "$(dirname "${DESTDIR:-}$2")"
|
|
if [ "$(dirname $1)" = . -o "$(dirname $1)" = .. ]; then
|
|
ln -vfs -T -- "$1" "${DESTDIR:-}$2"
|
|
else
|
|
ln -vfs -T --relative -- "${DESTDIR:-}$1" "${DESTDIR:-}$2"
|
|
fi
|