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

Attachments

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