]> Zhao Yanbai Git Server - minix.git/commitdiff
share/mk: use original stat -qf
authorAntoine LECA <Antoine.Leca.1@gmail.com>
Tue, 19 Jul 2011 16:38:06 +0000 (18:38 +0200)
committerBen Gras <ben@minix3.org>
Tue, 19 Jul 2011 16:38:06 +0000 (18:38 +0200)
share/mk/bsd.inc.mk
share/mk/bsd.kinc.mk

index 58acf111c4d24d9f3d901b0fa3e2dbbd64f7a120..3aadf3a812195d0723d75259e037c68124f3ccff 100644 (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; \
index e69d316769fea8f9ecf651f748e8969db3de874c..bb4b035cb9b8fdd008710bc9d69eb6010520b772 100644 (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; \