From: Antoine LECA Date: Tue, 19 Jul 2011 16:38:06 +0000 (+0200) Subject: share/mk: use original stat -qf X-Git-Tag: v3.2.0~444 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/mandoc.1.ps?a=commitdiff_plain;h=afd132adc9a9587fd4bd405153e06fff90eecd6b;p=minix.git share/mk: use original stat -qf --- 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; \