Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2017 11:13:32 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438938 - head/Mk
Message-ID:  <201704201113.v3KBDWLR049802@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Thu Apr 20 11:13:32 2017
New Revision: 438938
URL: https://svnweb.freebsd.org/changeset/ports/438938

Log:
  Add a RLN command (relative ln), it can be used to create relative
  symlinks using install's relative symlinks feature.
  
  If you were going through hoops doing things like this to get relative
  symlinks:
  
    ${LN} -sf ../lib/some/thing ${STAGEDIR}${PREFIX}/bin
  
  You can now use full paths for both the source and destination:
  
    ${RLN} ${STAGEDIR}${PREFIX}/libexec/some/thing ${STAGEDIR}${PREFIX}/bin
  
  One caveat is that the source must exist when this is run, because
  install needs to run realpath(1) on it.
  
  Sponsored by:	Absolight

Modified:
  head/Mk/bsd.commands.mk   (contents, props changed)

Modified: head/Mk/bsd.commands.mk
==============================================================================
--- head/Mk/bsd.commands.mk	Thu Apr 20 09:28:04 2017	(r438937)
+++ head/Mk/bsd.commands.mk	Thu Apr 20 11:13:32 2017	(r438938)
@@ -75,6 +75,7 @@ PS_CMD?=		/bin/ps
 PW?=			/usr/sbin/pw
 READELF?=		/usr/bin/readelf
 REALPATH?=		/bin/realpath
+RLN?=			${INSTALL} -l rs
 RM?=			/bin/rm -f
 RMDIR?=			/bin/rmdir
 SED?=			/usr/bin/sed



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