Gentoo Archives: gentoo-dev

From: Ben de Groot <yngwin@g.o>
To: gentoo-dev@l.g.o
Subject: Re: readme.gentoo.eclass: use echo -e instead of plain echo (Was: Re: [gentoo-dev] readme.gentoo.eclass: Add a DISABLE_AUTOFORMATTING variable=
Date: Fri, 01 Feb 2013 09:55:24
Message-Id: CAB9SyzTA799FY=SUO31=Mpd=RCmD5wedoxru7hwDbpfHa8vPtQ@mail.gmail.com
In Reply to: Re: readme.gentoo.eclass: use echo -e instead of plain echo (Was: Re: [gentoo-dev] readme.gentoo.eclass: Add a DISABLE_AUTOFORMATTING variable= by Pacho Ramos
1 On 1 February 2013 02:59, Pacho Ramos <pacho@g.o> wrote:
2 > El dom, 27-01-2013 a las 18:47 +0100, Pacho Ramos escribió:
3 >> El dom, 27-01-2013 a las 15:00 +0100, Pacho Ramos escribió:
4 >> > Currently, when people uses DOC_CONTENTS variable to place their desired
5 >> > messages, they are automatically reformatted by "fmt" to get proper
6 >> > messages (for example, splitting long lines).
7 >> >
8 >> > But, in some cases, may be useful to disable this behavior and respect
9 >> > strictly how DOC_CONTENTS was formatted, for example in that kind of
10 >> > messages telling people to run a command and, then, requiring a new line
11 >> > to be used. This can also be useful to append extra information to
12 >> > DOC_CONTENTS when, for example, additional info is needed when enabling
13 >> > a USE flag.
14 >> >
15 >> >
16 >>
17 >> Well, after reading man echo I see all this is not needed, I simply need
18 >> to use echo -e to get it understand "\n" to create new lines
19 >>
20 >> New patch attached
21 >
22 > This will add an option to disabling autoformatting to let people get
23 > their doc_contents 100% respected if they want
24
25 How about using an "as-is" argument to readme.gentoo_create_doc?
26 That would be more concise. :-)
27
28 --
29 Cheers,
30
31 Ben | yngwin
32 Gentoo developer
33 Gentoo Qt project lead, Gentoo Wiki admin

Replies