svn commit: r51070 - head/share/mk

Wolfram Schneider wosch at FreeBSD.org
Sat Oct 7 09:03:12 UTC 2017


Author: wosch
Date: Sat Oct  7 09:03:10 2017
New Revision: 51070
URL: https://svnweb.freebsd.org/changeset/doc/51070

Log:
  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

Modified:
  head/share/mk/web.site.mk

Modified: head/share/mk/web.site.mk
==============================================================================
--- head/share/mk/web.site.mk	Sat Oct  7 08:41:40 2017	(r51069)
+++ head/share/mk/web.site.mk	Sat Oct  7 09:03:10 2017	(r51070)
@@ -300,6 +300,7 @@ _installlinks:
 		t=$$1; \
 		shift; \
 		${ECHO_CMD} $$t -\> $$l; \
+		${RM} -f $$t; \
 		${LN} -fs $$l $$t; \
 	done )
 .endif


More information about the svn-doc-all mailing list