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 8BD021386FD for ; Mon, 28 Jan 2013 06:37:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2171221C013; Mon, 28 Jan 2013 06:37:13 +0000 (UTC) Received: from mail-ia0-f181.google.com (mail-ia0-f181.google.com [209.85.210.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0C12C21C00C for ; Mon, 28 Jan 2013 06:37:11 +0000 (UTC) Received: by mail-ia0-f181.google.com with SMTP id k25so3707019iah.26 for ; Sun, 27 Jan 2013 22:37:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=vY2KGmx2Mh2FIQWnwZ5srV7YuiTCBe7NwI3GtOF9l3M=; b=rJrWKh76pgMB+kMCLwsuDwx1E9mrgrpLWjGg0XX8lpwAAsATtFGtBW88LRLAv1chXP lFJi/XWNFx8dFLSzAch1vg5AgDAKHNXoM98Mb7JyFsuCnLu+57M1n165QdaXUo8MWnjD rh8v/H2t+JOuu8AVKk57zGSRR/mey9DYIcpJRb1MpC2mHu1X+H2zlJtQcTEuk9nN4DZw KF9dJUdbYz050KdaxbrWH+SWjgxFVNeXhxQNFc0JKceAaSFNIfcMJL3Xn7tA+VMOR6LE QnCkvk8P7ghilee4paggK98VSXMQii15UMGiLN6W+wJ2wB2xhhch/WMBCf/bm9CjvzDV cdlQ== 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 X-Received: by 10.43.124.130 with SMTP id go2mr8223326icc.8.1359355031090; Sun, 27 Jan 2013 22:37:11 -0800 (PST) Sender: yngwin@gmail.com Received: by 10.64.52.166 with HTTP; Sun, 27 Jan 2013 22:37:10 -0800 (PST) In-Reply-To: <201301272337.06614.vapier@gentoo.org> References: <1359295221.2927.24.camel@belkin4> <201301271305.54346.vapier@gentoo.org> <1359310887.2927.39.camel@belkin4> <201301272337.06614.vapier@gentoo.org> Date: Mon, 28 Jan 2013 14:37:10 +0800 X-Google-Sender-Auth: ppBHzfJFwK1txxSgL8RUffB3h2s Message-ID: Subject: Re: readme.gentoo.eclass: use echo -e instead of plain echo (Was: Re: [gentoo-dev] readme.gentoo.eclass: Add a DISABLE_AUTOFORMATTING variable= From: Ben de Groot To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 02cce7e6-7d6d-498f-8a3a-db0d2d2762dd X-Archives-Hash: c4e41bb9ee0cac66f389fefec8aa41a2 On 28 January 2013 12:37, Mike Frysinger wrote: > On Sunday 27 January 2013 13:21:27 Pacho Ramos wrote: >> The problem is that it doesn't work so well. If I have the following at >> src_prepare (for example): >> src_prepare() { >> DOC_CONTENTS="You must create a symlink rom /etc/splash/tuxonice >> to the theme you want tuxonice to use, e.g.: \n >> # ln -sfn /etc/splash/emergence /etc/splash/tuxonice \n" >> ... >> >> and I handle ${DOC_CONTENTS} with quotes, it will end writing that tabs >> also in generated file as the contents of the variable will be put >> as-is. On the other hand, if I don't put it between quotes > > forcibly normalizing whitespace for all callers is wrong imo (as is sending it > through `fmt`). if the caller gave you content to write, it should write it. > if the caller didn't want tabs, it shouldn't have used it in the first place. > -mike I've started using this eclass, but with README files, not the variable, because this is currently the only way I can make sure it honours my formatting. -- Cheers, Ben | yngwin Gentoo developer Gentoo Qt project lead, Gentoo Wiki admin