From afd132adc9a9587fd4bd405153e06fff90eecd6b Mon Sep 17 00:00:00 2001 From: Antoine LECA Date: Tue, 19 Jul 2011 18:38:06 +0200 Subject: [PATCH] share/mk: use original stat -qf --- share/mk/bsd.inc.mk | 17 ++++------------- share/mk/bsd.kinc.mk | 17 ++++------------- 2 files changed, 8 insertions(+), 26 deletions(-) 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; \ -- 2.44.0