Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Oct 2017 09:03:10 +0000 (UTC)
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r51070 - head/share/mk
Message-ID:  <201710070903.v9793AoX074566@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710070903.v9793AoX074566>