Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg/tidy.sh.in
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-04-19 22:25:51 -0400
committerAllan McRae <allan@archlinux.org>2021-04-23 09:48:08 +1000
commit8fe552070945561a0cd4dc24d3fcb22ed377f1a0 (patch)
tree0aeb8603acc06caf1caadf6f13447be3a19104c4 /scripts/libmakepkg/tidy.sh.in
parent079b9d44e2faadd83856de07f890bae5cc51c5a4 (diff)
meson: make our symlinking script more portable
We do not need the --relative case as it is dead code (we only ever link a filename without directory components). For the rest, GNU-specific ln -T does two things: - if the link name is an existing directory, ln fails instead of creating a surprising link inside the directory - if the link name is a symlink to a directory, ln treats it as a file, and due to -f, unlinks it The second case can be portably solved by ln -n, and both cases can be solved by doing what the original autotools Makefile did: rm -f && ln -s If the file exists, it will be removed. If it cannot be removed, it must be an ordinary directory, and the script aborts with an error. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/tidy.sh.in')
0 files changed, 0 insertions, 0 deletions