lilalo
diff install @ 112:da65f1cbaf3a
l3prompt added
author | igor |
---|---|
date | Sat Mar 08 22:36:44 2008 +0200 (2008-03-08) |
parents | 0d49f33696b3 |
children | 658b4ea105c1 |
line diff
1.1 --- a/install Sun Nov 12 17:34:47 2006 +0200 1.2 +++ b/install Sat Mar 08 22:36:44 2008 +0200 1.3 @@ -25,6 +25,7 @@ 1.4 url_perl_modules=${url_lilalo}/ 1.5 perl_modules="Term-VT102 Text-Iconv" 1.6 1.7 +apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc" 1.8 1.9 wget=wget 1.10 uname -a | grep -qi bsd && wget=fetch 1.11 @@ -34,6 +35,25 @@ 1.12 redC='\033[0;31m' 1.13 greenC='\033[0;32m' 1.14 1.15 +apt_get_install_deps() 1.16 +{ 1.17 + if which apt-get >& /dev/null 1.18 + then 1.19 + apt-get install -y $apt_get_install_this 1.20 + else 1.21 + echo "Please install this dependencies manually:" 1.22 + echo $apt_get_install_this 1.23 + echo "Have you installed this already (y/n)?" 1.24 + echo y | read answer 1.25 + if echo $answer | grep -q ^[yY] 1.26 + then 1.27 + true 1.28 + else 1.29 + echo Please install the dependencies and rerun the script 1.30 + exit 1 1.31 + fi 1.32 + fi 1.33 +} 1.34 1.35 1.36 step() 1.37 @@ -141,6 +161,7 @@ 1.38 temp_dir=/tmp/lilalo-install-temp-$$ 1.39 mkdir -p ${temp_dir} 1.40 cd ${temp_dir} 1.41 +step "Installing dependencies" apt_get_install_deps 1.42 step "Downloading l3bashrc" ${wget} ${url_l3bashrc} 1.43 step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config}' 1.44 step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }'