On Mon, Sep 08, 2014 at 01:04:25PM +0100, David Brodie wrote:
> On 08/09/14 09:16, Pierre Labastie wrote:
> 
> >
> >Second, even if a version were added to the title, since the installation
> >process is interactive, installation cannot be automated anyway.
> >
> 
> I'm not volunteering, but it's reasonably straightforward to automate
> interactive installs with 'expect', for example, this is a script which I
> wrote for a binary install of the Free Pascal compiler (with unquoted EOF so
> I can substitute $install_dir):
> 
>     cat > expect.$$$ << EOF
> set timeout -1   ;
> spawn bash install.sh
> expect {
>     "Install prefix" { exp_send "$install_dir\r" ; exp_continue }
>     "Install Textmode IDE" { exp_send "y\r" ; exp_continue }
>     "Install FCL" { exp_send "y\r" ; exp_continue }
>     "Install packages" { exp_send "y\r" ; exp_continue }
>     "Install documentation" { exp_send "y\r" ; exp_continue }
>     "Install demos" { exp_send "y\r" ; exp_continue }
>     "Install demos in" { exp_send "\r" ; exp_continue }
>     eof
> }
> EOF
> 
> and to run it is simply:
> 
>     expect expect.$$$
> 
> or alternatively you can do it all on the expect command line, e.g. for the
> Android SDK (not the latest version):
> 
>     expect -c '
> set timeout -1   ;
> spawn tools/android update sdk --no-ui --no-https \
>     --filter
> platform-tools,build-tools-19.0.1,android-19,extra-android-support;
> expect {
>     "Do you accept the license" { exp_send "y\r" ; exp_continue }
>     eof
> }
> '
> 
> (Without missing the final single quote)
> 
> David

 Because the book is not _primarily_ aimed at automation (although
it is certainly nice to have people test things using what the book
actually says, rather than what we think it says) I did not add any
HOWTO information in intall_tl_unx.

 But my own builds are unattended, and for the binary I use
yes 'i' | TEXLIVE_INSTALL_PREFIX=/opt/texlive ./install-tl
(no, I do not recall what the 'i' is for).

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to