Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jun 2015 22:27:53 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284684 - head/share/mk
Message-ID:  <201506212227.t5LMRr6k020049@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506212227.t5LMRr6k020049>