pacman/build-aux
Eli Schwartz 8fe5520709 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>
2021-04-23 09:48:08 +10:00
..
.gitignore Patch ltmain on autoreconf 2013-07-22 13:27:47 +10:00
cat-test-file gitlab-ci: print output and logs for failed tests 2021-01-21 17:18:24 +10:00
edit-script.sh.in remove sed command lookup and hardcoding in edit-script.sh 2021-03-25 11:38:58 +10:00
meson-make-symlink.sh meson: make our symlinking script more portable 2021-04-23 09:48:08 +10:00
print-failed-test-output gitlab-ci: print output and logs for failed tests 2021-01-21 17:18:24 +10:00
script-wrapper.sh.in meson: add a wrapper to bootstrap scripts from within build dir 2018-11-02 03:16:34 -04:00
update-copyright Move update-copyright into build-aux 2019-11-05 15:25:52 +10:00
update-po build-aux: detect build dir based on build.ninja 2019-08-05 18:26:21 +10:00