share/mk: use original stat -qf

This commit is contained in:
Antoine LECA 2011-07-19 18:38:06 +02:00 committed by Ben Gras
parent 5df8be8e7a
commit afd132adc9
2 changed files with 8 additions and 26 deletions

View file

@ -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; \

View file

@ -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; \