Re: here-documents in ebuild pk wrote:
> pk wrote:
>
>> Note that the shell ignores the "EOF" if it has leading whitespace.
>> My guess is that the closing "EOF" should probably go right at the
>> beginning of the line. See eg app-text/htp/htp-1.15.ebuild, which uses a
>> similar construct.
>
> Ok, after some tests it seems that EOF can be indented using tabs, but not
> spaces. So, try either putting EOF at the beginning, or indenting it with
> tabs only.
It is indented with tabs, and the script runs OK on it's own. It just
won't run inside the portage framework and I don't know why. |