git: bcb7f57aa227 - main - conf/kern.mk: save some work by using realpath instead of cd ; pwd
Mateusz Guzik
mjg at FreeBSD.org
Wed Jan 27 12:42:06 UTC 2021
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=bcb7f57aa22757dd0206e88894bc003a93d0c351
commit bcb7f57aa22757dd0206e88894bc003a93d0c351
Author: Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-01-27 12:25:21 +0000
Commit: Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-01-27 12:41:33 +0000
conf/kern.mk: save some work by using realpath instead of cd ; pwd
I did not check if the entire ordeal can be avoided in the first place.
---
sys/conf/kmod.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index c245f447cefb..c0d4441af029 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -309,7 +309,7 @@ ${_ILINKS}:
*) \
path=${SYSDIR}/${.TARGET:T}/include ;; \
esac ; \
- path=`(cd $$path && /bin/pwd)` ; \
+ path=`realpath $$path`; \
${ECHO} ${.TARGET:T} "->" $$path ; \
ln -fns $$path ${.TARGET:T}
More information about the dev-commits-src-main
mailing list