diff --git a/share/mk/bsd.inc.mk b/share/mk/bsd.inc.mk index 58acf111c..3aadf3a81 100644 --- a/share/mk/bsd.inc.mk +++ b/share/mk/bsd.inc.mk @@ -42,23 +42,14 @@ incinstall:: ${_F} inclinkinstall: .PHONY .if !empty(INCSYMLINKS) -# XXX: Minix can't handle stat -qf -# @(set ${INCSYMLINKS}; \ -# while test $$# -ge 2; do \ -# l=$$1; shift; \ -# t=${DESTDIR}$$1; shift; \ -# if ttarg=`${TOOL_STAT} -qf '%Y' $$t` && \ -# [ "$$l" = "$$ttarg" ]; then \ -# continue ; \ -# fi ; \ -# ${_MKSHMSG_INSTALL} $$t; \ -# ${_MKSHECHO} ${INSTALL_SYMLINK} $$l $$t; \ -# ${INSTALL_SYMLINK} $$l $$t; \ -# done; ) @(set ${INCSYMLINKS}; \ while test $$# -ge 2; do \ l=$$1; shift; \ t=${DESTDIR}$$1; shift; \ + if ttarg=`${TOOL_STAT} -qf '%Y' $$t` && \ + [ "$$l" = "$$ttarg" ]; then \ + continue ; \ + fi ; \ ${_MKSHMSG_INSTALL} $$t; \ ${_MKSHECHO} ${INSTALL_SYMLINK} $$l $$t; \ ${INSTALL_SYMLINK} $$l $$t; \ diff --git a/share/mk/bsd.kinc.mk b/share/mk/bsd.kinc.mk index e69d31676..bb4b035cb 100644 --- a/share/mk/bsd.kinc.mk +++ b/share/mk/bsd.kinc.mk @@ -65,23 +65,14 @@ incinstall:: ${_F} .if defined(INCSYMLINKS) && !empty(INCSYMLINKS) incinstall:: -# XXX: Minix can't handle stat -qf -# @(set ${INCSYMLINKS}; \ -# while test $$# -ge 2; do \ -# l=$$1; shift; \ -# t=${DESTDIR}$$1; shift; \ -# if ttarg=`${TOOL_STAT} -qf '%Y' $$t` && \ -# [ "$$l" = "$$ttarg" ]; then \ -# continue ; \ -# fi ; \ -# ${_MKSHMSG_INSTALL} $$t; \ -# ${_MKSHECHO} ${INSTALL_SYMLINK} $$l $$t; \ -# ${INSTALL_SYMLINK} $$l $$t; \ -# done; ) @(set ${INCSYMLINKS}; \ while test $$# -ge 2; do \ l=$$1; shift; \ t=${DESTDIR}$$1; shift; \ + if ttarg=`${TOOL_STAT} -qf '%Y' $$t` && \ + [ "$$l" = "$$ttarg" ]; then \ + continue ; \ + fi ; \ ${_MKSHMSG_INSTALL} $$t; \ ${_MKSHECHO} ${INSTALL_SYMLINK} $$l $$t; \ ${INSTALL_SYMLINK} $$l $$t; \