Author: bapt
Date: Sun Jun 21 22:27:52 2015
New Revision: 284684
URL: https://svnweb.freebsd.org/changeset/base/284684

Log:
  Simplify symlinks on include files by using bmake's multivariable .for loops

Modified:
  head/share/mk/bsd.incs.mk

Modified: head/share/mk/bsd.incs.mk
==============================================================================
--- head/share/mk/bsd.incs.mk   Sun Jun 21 19:50:02 2015        (r284683)
+++ head/share/mk/bsd.incs.mk   Sun Jun 21 22:27:52 2015        (r284684)
@@ -77,15 +77,10 @@ _${group}INS: ${_${group}INCS}
 
 .if defined(INCSLINKS) && !empty(INCSLINKS)
 installincludes:
-       @set ${INCSLINKS}; \
-       while test $$# -ge 2; do \
-               l=$$1; \
-               shift; \
-               t=${DESTDIR}$$1; \
-               shift; \
-               ${ECHO} $$t -\> $$l; \
-               ${INSTALL_SYMLINK} $$l $$t; \
-       done; true
+.for s t in ${INCSLINKS}
+       @${ECHO} "$t -> $s" ; \
+       ${INSTALL_SYMLINK} $s ${DESTDIR}$t
+.endfor
 .endif
 .endif # !target(installincludes)
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to