svn commit: r438938 - head/Mk
Mathieu Arnold
mat at FreeBSD.org
Thu Apr 20 11:13:34 UTC 2017
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
More information about the svn-ports-head
mailing list