Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-dev
| Navigation: |
|
Lists:
gentoo-dev:
< Prev
By Thread
Next >
< Prev
By Date
Next >
|
| Headers: |
|
To:
|
gentoo-dev@g.o
|
|
From:
|
Peter Volkov <pva@g.o>
|
|
Subject:
|
Re: Re: [gentoo-commits] gentoo-x86 commit in app-misc/linux-logo: linux-logo-5.11.ebuild ChangeLog
|
|
Date:
|
Fri, 24 Jun 2011 21:15:12 +0400
|
|
В Птн, 24/06/2011 в 18:22 +0200, Jeroen Roovers пишет:
> On Fri, 24 Jun 2011 10:29:51 +0400
> Peter Volkov <pva@g.o> wrote:
>
> > > src_prepare() {
> > > echo "./logos/gentoo.logo" >> logo_config
> > > echo "./logos/gentoo2.logo" >> logo_config
> > > echo "./logos/banner-simplified.logo" >> logo_config
> > > echo "./logos/banner.logo" >> logo_config
> > > echo "./logos/classic-no_periods.logo" >> logo_config
> > > echo "./logos/classic-no_periods_or_chars.logo" >>
> > > logo_config echo "./logos/classic.logo" >> logo_config
> >
> > cat >> logo_config <<-EOF will look much better here.
>
> src_prepare() {
> cat >> logo_config <<EOF
> line0
> line1
> line2
> line3
> EOF
> }
>
> Since I like indenting, I don't think so. Using FILESDIR is probably
> better, as mgorny suggested.
Note '-' before EOF. With it indenting works fine. See `info bash`:
If the redirection operator is `<<-', then all leading tab
characters are stripped from input lines and the line containing
DELIMITER. This allows here-documents within shell scripts to be
indented in a natural fashion.
But ${FILESDIR} works too, although additional file IMO redundant.
--
Peter.
|
|