diff options
| author | Wolfram Schneider <wosch@FreeBSD.org> | 2017-10-07 09:03:10 +0000 |
|---|---|---|
| committer | Wolfram Schneider <wosch@FreeBSD.org> | 2017-10-07 09:03:10 +0000 |
| commit | 9c93d11e18bb4d9d0cd401006b8a7b27d56a50ad (patch) | |
| tree | 220c7dd21cf0d3a343921c5f8ac645f0b4a59943 /share/mk | |
| parent | abe2a0adfa95b965807ea14e1e7f3ec6a6c00e57 (diff) | |
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
Notes
svn path=/head/; revision=51070
Diffstat (limited to 'share/mk')
| -rw-r--r-- | share/mk/web.site.mk | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
