Gentoo Archives: gentoo-dev

From: Pacho Ramos <pacho@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 20:34:58
Message-Id: 1359750888.26423.16.camel@belkin4
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 Ben de Groot
1 El vie, 01-02-2013 a las 17:55 +0800, Ben de Groot escribió:
2 > On 1 February 2013 02:59, Pacho Ramos <pacho@g.o> wrote:
3 > > El dom, 27-01-2013 a las 18:47 +0100, Pacho Ramos escribió:
4 > >> El dom, 27-01-2013 a las 15:00 +0100, Pacho Ramos escribió:
5 > >> > Currently, when people uses DOC_CONTENTS variable to place their desired
6 > >> > messages, they are automatically reformatted by "fmt" to get proper
7 > >> > messages (for example, splitting long lines).
8 > >> >
9 > >> > But, in some cases, may be useful to disable this behavior and respect
10 > >> > strictly how DOC_CONTENTS was formatted, for example in that kind of
11 > >> > messages telling people to run a command and, then, requiring a new line
12 > >> > to be used. This can also be useful to append extra information to
13 > >> > DOC_CONTENTS when, for example, additional info is needed when enabling
14 > >> > a USE flag.
15 > >> >
16 > >> >
17 > >>
18 > >> Well, after reading man echo I see all this is not needed, I simply need
19 > >> to use echo -e to get it understand "\n" to create new lines
20 > >>
21 > >> New patch attached
22 > >
23 > > This will add an option to disabling autoformatting to let people get
24 > > their doc_contents 100% respected if they want
25 >
26 > How about using an "as-is" argument to readme.gentoo_create_doc?
27 > That would be more concise. :-)
28 >
29
30 I have no problem on either solution... but don't have time just now to
31 work on a patch to achieve it, if you have a bit time, I would really
32 appreciate :)

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies