From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id ED8F7138749 for ; Tue, 29 Jan 2013 22:06:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6EB321C039; Tue, 29 Jan 2013 22:05:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A29F421C005 for ; Tue, 29 Jan 2013 22:05:55 +0000 (UTC) Received: from pomiocik.lan (p33.ppp.polbox.pl [213.241.7.33]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id D64AB33DA9B; Tue, 29 Jan 2013 22:05:53 +0000 (UTC) Date: Tue, 29 Jan 2013 23:06:37 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: gentoo-dev@lists.gentoo.org Cc: pacho@gentoo.org Subject: Re: readme.gentoo.eclass: use echo -e instead of plain echo (Was: Re: [gentoo-dev] readme.gentoo.eclass: Add a DISABLE_AUTOFORMATTING variable= Message-ID: <20130129230637.66d390db@pomiocik.lan> In-Reply-To: <1359496046.2927.55.camel@belkin4> References: <1359295221.2927.24.camel@belkin4> <201301271305.54346.vapier@gentoo.org> <1359310887.2927.39.camel@belkin4> <201301272337.06614.vapier@gentoo.org> <1359401406.2927.49.camel@belkin4> <1359496046.2927.55.camel@belkin4> Organization: Gentoo X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.14; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/jtdPJ1ITRg4yhChBxYYl2F."; protocol="application/pgp-signature" X-Archives-Salt: d9a00481-77ce-4b81-ad1b-c9223506648c X-Archives-Hash: 8b229ad4288250dbd1f223e28d2bd5d4 --Sig_/jtdPJ1ITRg4yhChBxYYl2F. Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 29 Jan 2013 22:47:26 +0100 Pacho Ramos wrote: > El mar, 29-01-2013 a las 14:03 +0800, Ben de Groot escribi=C3=B3: > > On 29 January 2013 03:30, Pacho Ramos wrote: > > > El lun, 28-01-2013 a las 14:37 +0800, Ben de Groot escribi=C3=B3: > > >> I've started using this eclass, but with README files, not the varia= ble, > > >> because this is currently the only way I can make sure it honours my > > >> formatting. > > >> > > > > > > Couldn't it be covered if "echo -e" was used (even with fmt) and you, > > > then, control formatting with some of the sequences it allows (they a= re > > > shown in its man page)? > >=20 > > No. The eclass should assume that DOC_CONTENTS is already correctly > > formatted. If you must, you can add a convenience function for people > > who do want reformatting, but this should NOT be the default. Please > > don't make this eclass harder to use than it needs to be. > >=20 >=20 > I can add a variable (and probably will), but would prefer to keep it > formatting messages by default, otherwise, how will you set DOC_CONTENTS > variable inside a pkg phase (instead of global scope) without adding > tabs to it? You can of course add it, but it will be read as something > like: > src_prepare() { > DOC_CONTENTS=3D"blablabla > blablabla" > # Rest of src_prepare stuff > } How about: src_prepare() { DOC_CONTENTS=3D( "line 1" "line 2" "line 3" ) } ? --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/jtdPJ1ITRg4yhChBxYYl2F. Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iJwEAQEIAAYFAlEIR+0ACgkQfXuS5UK5QB30lwP+PHNyBMXJuIvpmz4/+IB995vn npACeLoGetVHUk0GD1OwdUIyEbqbTQ4MzUSAKxv0C6OA+nx0FYs9bcOHyop9oKqD 3TEWsZSNl47J11aCacm9ggaEFXDRT3oqPfezXz8e/rm53ZFXGdBwBLGKzvNI+jGG zRRBoilR2u2Xjqn3wWY= =sGuL -----END PGP SIGNATURE----- --Sig_/jtdPJ1ITRg4yhChBxYYl2F.--