lilalo

diff install @ 117:9bb58a1eee2b

l3prompt minifix $_[0] -> $ARGV[0]
author igor
date Mon Mar 10 01:30:07 2008 +0200 (2008-03-10)
parents 658b4ea105c1
children 73fb48eb8110
line diff
     1.1 --- a/install	Sun Mar 09 02:38:56 2008 +0200
     1.2 +++ b/install	Mon Mar 10 01:30:07 2008 +0200
     1.3 @@ -21,7 +21,8 @@
     1.4  url_lilalo="http://xgu.ru/lilalo"
     1.5  url_l3bashrc="${url_lilalo}"/l3bashrc
     1.6  url_l3agent="${url_lilalo}"/l3-agent
     1.7 -url_l3config="${url_lilalo}"/l3config.pm
     1.8 +url_l3config_pm="${url_lilalo}"/l3config.pm
     1.9 +url_l3config="${url_lilalo}"/l3-config
    1.10  url_l3prompt="${url_lilalo}"/l3prompt
    1.11  url_perl_modules=${url_lilalo}/
    1.12  perl_modules="Term-VT102 Text-Iconv"
    1.13 @@ -89,9 +90,11 @@
    1.14      do
    1.15          user_home=`get_user_home "$user"`
    1.16          mkdir -p ${user_home}/${lilalo_home}
    1.17 -        cp l3config.pm /usr/local/bin
    1.18 +        mkdir /etc/lilalo/
    1.19 +        cp l3config.pm /etc/lilalo/
    1.20          cp l3-agent /usr/local/bin
    1.21 -        chmod 755 /usr/local/bin/l3-agent
    1.22 +        cp l3-config /usr/local/bin
    1.23 +        chmod 755 /usr/local/bin/l3-{agent,config}
    1.24          cp l3bashrc ${user_home}/${lilalo_home}
    1.25          cp l3prompt ${user_home}/${lilalo_home}
    1.26          chmod 755 ${user_home}/${lilalo_home}/l3prompt
    1.27 @@ -167,7 +170,7 @@
    1.28  step "Installing dependencies" apt_get_install_deps
    1.29  step "Downloading l3bashrc" ${wget} ${url_l3bashrc} 
    1.30  step "Downloading l3prompt" ${wget} ${url_l3prompt} 
    1.31 -step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config}'
    1.32 +step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3configpm}; ${wget} ${url_l3config}'
    1.33  step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }'
    1.34  step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }'
    1.35  step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users