diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2017-04-20 11:13:37 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2017-04-20 11:13:37 +0000 |
commit | a30d63066470771d0e1d774db7e4d1f13a850daa (patch) | |
tree | 63e90e8979885ed1389b32da763fa3309bf386dc /Mk/Uses/uniquefiles.mk | |
parent | Add a RLN command (relative ln), it can be used to create relative (diff) |
Use the new ${RLN} relative symlink magic to create uniquefiles.
Before, the symlinks were created as absolute paths, so it would look
like this:
$ ls -l /usr/local/bin/
[...]
lrwxr-xr-x 1 root wheel 12 Apr 14 14:28 autopep8 -> /usr/local/bin/autopep8-2.7
-rwxr-xr-x 1 root wheel 395 Apr 14 14:28 autopep8-2.7
[...]
After, the symlinks are created with relative paths:
$ ls -l /usr/local/bin/
[...]
lrwxr-xr-x 1 root wheel 12 Apr 14 14:28 autopep8 -> autopep8-2.7
-rwxr-xr-x 1 root wheel 395 Apr 14 14:28 autopep8-2.7
[...]
Reviewed by: bapt
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D10395
Notes
Notes:
svn path=/head/; revision=438939
Diffstat (limited to 'Mk/Uses/uniquefiles.mk')
-rw-r--r-- | Mk/Uses/uniquefiles.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/uniquefiles.mk b/Mk/Uses/uniquefiles.mk index 8285a4fa6d63..940ef3535408 100644 --- a/Mk/Uses/uniquefiles.mk +++ b/Mk/Uses/uniquefiles.mk @@ -93,7 +93,7 @@ _UNIQUEPKGLIST= ${WRKDIR}/.PLIST.uniquefiles _DO_CONDITIONAL_SYMLINK= \ if [ ! -e ${STAGEDIR}${PREFIX}/$${fname} -a ! -L ${STAGEDIR}${PREFIX}/$${fname} ]; then \ ${ECHO_MSG} "Link: @$${fname} --> $${newf}"; \ - ${LN} -s ${PREFIX}/$${newf} ${STAGEDIR}${PREFIX}/$${fname}; \ + ${RLN} ${STAGEDIR}${PREFIX}/$${newf} ${STAGEDIR}${PREFIX}/$${fname}; \ ${ECHO_CMD} LINKED:$${newf}:$${fname} >> ${_UNIQUEPKGLIST}; \ fi .else |