From 9c93d11e18bb4d9d0cd401006b8a7b27d56a50ad Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Sat, 7 Oct 2017 09:03:10 +0000 Subject: we need to delete the target symlink first before we can create it This solved the issue with symlinks to directories. The semantic of `ln -fs' is special if you run it for directories twice, e.g. mkdir from ln -sf from to find . -name from -or -name to ./to ./from now run it again ln -sf from to find . -name from -or -name to ./to ./from ./from/from ls -l from total 1 lrwxrwxr-x 1 wosch devel 4 Oct 6 13:54 from -> from PR: 222737 --- share/mk/web.site.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'share') diff --git a/share/mk/web.site.mk b/share/mk/web.site.mk index 6bacab0e38..7907f4d863 100644 --- a/share/mk/web.site.mk +++ b/share/mk/web.site.mk @@ -300,6 +300,7 @@ _installlinks: t=$$1; \ shift; \ ${ECHO_CMD} $$t -\> $$l; \ + ${RM} -f $$t; \ ${LN} -fs $$l $$t; \ done ) .endif -- cgit v1.3