svn commit: r284684 - head/share/mk

Baptiste Daroussin bapt at FreeBSD.org
Mon Jun 22 01:11:27 UTC 2015


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)
 


More information about the svn-src-head mailing list