mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
build: Use ls -i | cut rather than stat -f %i to extract inode
ls -i dates back to 5th edition Unix and is more portable than the stat command, though %% is a newer shellism, it works on any shell that FreeBSD builds with. Sponsored by: Netflix
This commit is contained in:
parent
53df7e58cc
commit
3d939d967a
|
@ -1059,8 +1059,8 @@ _cleanworldtmp: .PHONY
|
||||||
.if ${USING_SYSTEM_COMPILER} == "yes"
|
.if ${USING_SYSTEM_COMPILER} == "yes"
|
||||||
.for cc in cc c++
|
.for cc in cc c++
|
||||||
if [ -x ${WORLDTMP}/usr/bin/${cc} ]; then \
|
if [ -x ${WORLDTMP}/usr/bin/${cc} ]; then \
|
||||||
inum=$$(stat -f %i ${WORLDTMP}/usr/bin/${cc}); \
|
inum=$$(ls -i ${WORLDTMP}/usr/bin/${cc}); \
|
||||||
find ${WORLDTMP}/usr/bin -inum $${inum} -delete; \
|
find ${WORLDTMP}/usr/bin -inum $${inum%% *} -delete; \
|
||||||
fi
|
fi
|
||||||
.endfor
|
.endfor
|
||||||
.endif # ${USING_SYSTEM_COMPILER} == "yes"
|
.endif # ${USING_SYSTEM_COMPILER} == "yes"
|
||||||
|
|
Loading…
Reference in a new issue