]>
Commit | Line | Data |
---|---|---|
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 | 6 | mkdir -vp "$(dirname "${DESTDIR:-}$2")" |
7b76fce1 | 7 | if [ "$(dirname $1)" = . ]; then |
b884196c | 8 | ln -vfs -T "$1" "${DESTDIR:-}$2" |
7b76fce1 | 9 | else |
b884196c | 10 | ln -vfs -T --relative "${DESTDIR:-}$1" "${DESTDIR:-}$2" |
7b76fce1 | 11 | fi |