From owner-svn-doc-head@freebsd.org Sat Oct 7 09:03:12 2017 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3E21E32E3C; Sat, 7 Oct 2017 09:03:11 +0000 (UTC) (envelope-from wosch@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BEAB666775; Sat, 7 Oct 2017 09:03:11 +0000 (UTC) (envelope-from wosch@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9793Ap5074567; Sat, 7 Oct 2017 09:03:10 GMT (envelope-from wosch@FreeBSD.org) Received: (from wosch@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9793AoX074566; Sat, 7 Oct 2017 09:03:10 GMT (envelope-from wosch@FreeBSD.org) Message-Id: <201710070903.v9793AoX074566@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wosch set sender to wosch@FreeBSD.org using -f From: Wolfram Schneider Date: Sat, 7 Oct 2017 09:03:10 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r51070 - head/share/mk X-SVN-Group: doc-head X-SVN-Commit-Author: wosch X-SVN-Commit-Paths: head/share/mk X-SVN-Commit-Revision: 51070 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Oct 2017 09:03:12 -0000 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