Date: Wed, 20 Aug 2003 19:57:35 +0200 (CEST) From: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> To: Greg Lewis <glewis@misty.eyesbeyond.com> Cc: freebsd-java@freebsd.org Subject: Re: bsd.java.mk 2.0 Message-ID: <20030820195123.W11521@puget.esil.univ-mrs.fr> In-Reply-To: <20030820053454.GB7208@misty.eyesbeyond.com> References: <20030514.125107.74756915.haro@kgt.co.jp> <20030529175837.GA31122@misty.eyesbeyond.com> <20030818154837.P56591@puget.esil.univ-mrs.fr> <20030820053454.GB7208@misty.eyesbeyond.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 Aug 2003, Greg Lewis wrote: > > There may be another solution. If anyone has any idea, or just knows > > how to do 'for' loops (or even lists intersections) in a generic (that > > is not shell dependent) fashion, please let me know about it. > > As per make(1): > > .for variable in expression > <make-rules> > .endfor As per make(1): For loops are expanded before tests, so a fragment such as: .for TMACHINE in ${SHARED_ARCHS} .if ${TMACHINE} = ${MACHINE} ... .endif .endfor won't work, and should be rewritten the other way around. So no .if in .for loops :( But I found a solution. Rather complex but hopefuly working (will test tonight): echo | tr | sort | uniq | grep | awk I'm pretty sure there's another (somewhat more simple) solution but if I can get it to work as-is then we might improve it later. Herve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030820195123.W11521>