From: Taylor R Campbell Date: Tue, 13 Aug 2019 14:26:13 +0000 (+0000) Subject: Use ln -n to avoid following symlinks to directories. X-Git-Tag: mit-scheme-pucked-10.1.20~11^2~88 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=51456d87d356559d3ed7f6e2395a7ae6de159e42;p=mit-scheme.git Use ln -n to avoid following symlinks to directories. Evidently -h is the BSD option for `don't follow symlinks', following the convention of chmod and other utilities, while -n is the GNU option; fortunately at least NetBSD ln has had -n too for GNU compatibility for decades so I'm satisfied with -n. (Neither one is POSIX.) --- diff --git a/src/Makefile.tools.in b/src/Makefile.tools.in index ffa9554e5..7641fe865 100644 --- a/src/Makefile.tools.in +++ b/src/Makefile.tools.in @@ -115,7 +115,7 @@ clean: SCHEME_OBJECTS_PATTERN = *.bci *.bin *.crf *.com *.ext *.fre *.lap *.pkd *.rtl -SYMLINK = link () { test -h "$$2" || ln -sfh "$$1" "$$2"; }; link +SYMLINK = link () { test -h "$$2" || ln -sfn "$$1" "$$2"; }; link .PHONY: tooldir tooldir: