svn commit: r51070 - head/share/mk

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.