From owner-freebsd-ports@FreeBSD.ORG Mon Jan 17 21:49:21 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5016106564A for ; Mon, 17 Jan 2011 21:49:21 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 077678FC0A for ; Mon, 17 Jan 2011 21:49:20 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id p0HLnCZk026262 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 17 Jan 2011 21:49:12 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p0HLnCZk026262 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1295300952; bh=zE3BA0zR1Q4NoFm50zZE9Uz0G1ENN42nM+G78V7aSb0=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4D34B94D.305@infracaninophile.co.uk>|Date:=20Mon,= 2017=20Jan=202011=2021:49:01=20+0000|From:=20Matthew=20Seaman=20|User-Agent:=20Mozilla/5.0=20(Macin tosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20rv:1. 9.2.13)=20Gecko/20101207=20Thunderbird/3.1.7|MIME-Version:=201.0|T o:=20Jason=20Helfman=20|CC:=20Ruslan=20Mahmatkha nov=20,=20ports@freebsd.org|Subject:=20Re:=20Ne w=20port=20needs=20review:=20net/erlyvideo|References:=20<11111295 127072@web122.yandex.ru>=20<4D3329FE.7020901@yandex.ru>=09<2011011 6204416.GA1654@eggman.experts-exchange.com>=09<4D3361B3.40201@yand ex.ru>=09<20110116214557.GA2179@eggman.experts-exchange.com>=09<4D 34A312.8060808@yandex.ru>=20<20110117202625.GA55917@eggman.experts -exchange.com>|In-Reply-To:=20<20110117202625.GA55917@eggman.exper ts-exchange.com>|X-Enigmail-Version:=201.1.1|OpenPGP:=20id=3D60AE9 08C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1=3B=0D= 0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D "------------enig459B8F78EF5E4277F1914CD0"; b=l26KU9P6ANK8buEZpIkNe2uDwQy4PGH+tfhEiwOSfa00fVANEhdfNJPAD5n/ioL9w axQofDCBBBM5GBx32JhhqGap9NbPJ6StLsS1WGGlP/sAPKZD59m/RuxKbsnyrhk3GL 1cOd3Ddx2L19hQ+gn3LKlLNjsv2QylWsTPj+IGAQ= Message-ID: <4D34B94D.305@infracaninophile.co.uk> Date: Mon, 17 Jan 2011 21:49:01 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Jason Helfman References: <11111295127072@web122.yandex.ru> <4D3329FE.7020901@yandex.ru> <20110116204416.GA1654@eggman.experts-exchange.com> <4D3361B3.40201@yandex.ru> <20110116214557.GA2179@eggman.experts-exchange.com> <4D34A312.8060808@yandex.ru> <20110117202625.GA55917@eggman.experts-exchange.com> In-Reply-To: <20110117202625.GA55917@eggman.experts-exchange.com> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig459B8F78EF5E4277F1914CD0" X-Virus-Scanned: clamav-milter 0.96.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Cc: ports@freebsd.org, Ruslan Mahmatkhanov Subject: Re: New port needs review: net/erlyvideo X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 21:49:21 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig459B8F78EF5E4277F1914CD0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 17/01/2011 20:26, Jason Helfman wrote: >> .for dir in /var/lib/${PORTNAME}/movies /var/lib/${PORTNAME}/plugins >> \ /var/log/${PORTNAME} ${ETCDIR} ${ERLYDIR} ${WWWDIR} >> ${MKDIR} ${dir} >> .endfor >> """ This snippet needs to be associated with some sort of make target or it will never get run. You can do something like this: DIRS=3D /var/lib/${PORTNAME}/movies \ /var/lib/${PORTNAME}/plugins \ /var/log/${PORTNAME} \ ${ETCDIR} ${ERLYDIR} ${WWWDIR} =2Efor dir in $DIRS dirs :: ${dir} ${MKDIR} ${.TARGET} =2Eendfor Or you could have just one target and put a shell loop as the action: DIRS=3D ... dirs : for d in ${DIRS} ; do \ ${MKDIR} $$d ; \ done Note the backslashes so that make(1) executes all of that as one command, and the required use of ';' to mark the end of the different shell statements. > I believe you need to do this: >=20 > ${MKDIR} $${dir} No -- that's not the case here. You need to do this if you have a shell for-loop as part of the action of a target (the second example above), as $$ causes make to pass a literal $ through to the underlying shell, rather than expanding it as a make(1) variable. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig459B8F78EF5E4277F1914CD0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk00uVcACgkQ8Mjk52CukIw1UACgjoiPiam5A9S6unZ5LtEcYVrf jGMAnjGbsX9hmOs8jzKS8HiCpQpqAHBh =Ofqq -----END PGP SIGNATURE----- --------------enig459B8F78EF5E4277F1914CD0--