From 475651f2f57c09db8928121e538e2982d342675b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santi=20Nore=C3=B1a?= Date: Mon, 6 May 2013 21:57:05 +0200 Subject: [PATCH] - Install scripts added dependencies and bugfix --- scripts/install_precise.sh | 6 +++--- scripts/install_wheezy.sh | 20 +++++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) mode change 100644 => 100755 scripts/install_precise.sh diff --git a/scripts/install_precise.sh b/scripts/install_precise.sh old mode 100644 new mode 100755 index e831de5..ede58d6 --- a/scripts/install_precise.sh +++ b/scripts/install_precise.sh @@ -15,12 +15,12 @@ cp /etc/apt/sources.list /etc/apt/sources.list.old output=`grep apt.openlighting.org /etc/apt/sources.list | wc -l` if [ "$output" -eq "0" ]; then #Añadimos el repositorio ola a sources.list - echo "deb http://apt.openlighting.org/debian/ precise main" >> /etc/apt/sources.list + echo "deb http://apt.openlighting.org/ubuntu/ precise main" >> /etc/apt/sources.list fi apt-get update -apt-get -y --force-yes install ola libqtcore4 libqtgui4 libmacgick++4 libav-tools +apt-get -y --force-yes install ola libqtcore4 libqtgui4 libmagick++4 libav-tools libftgl2 libavifile-0.7c2 libgmerlin-avdec1 libmpeg3-1 if [ "$?" -eq "0" ]; then echo "apt-get finish ok" - else "apt-get return errors!" + else echo "apt-get return errors!" fi diff --git a/scripts/install_wheezy.sh b/scripts/install_wheezy.sh index 499ce6c..49304f1 100755 --- a/scripts/install_wheezy.sh +++ b/scripts/install_wheezy.sh @@ -8,13 +8,19 @@ ############################################################################### # Comprobamos root (( EUID )) && echo ‘You need to be root.’ && exit 1 -#Instalamos el paquete suministrado con el release -dpkg -i ola_0.8.26-1_i386.deb -# Install Pure Data y OLA -# libav para generar thumbs -apt-get -y --force-yes install libav-tools libqtcore4 libqtgui4 libmagick++5 +# Instalamos OLA desde el repositorio del proyecto +# copia de seguridad de sources.list +cp /etc/apt/sources.list /etc/apt/sources.list.old +# Comprobamos que el repositorio no está en soucers.list +output=`grep apt.openlighting.org /etc/apt/sources.list | wc -l` +if [ "$output" -eq "0" ]; then + #Añadimos el repositorio ola a sources.list + echo "deb http://apt.openlighting.org/debian/ wheezy main" >> /etc/apt/sources.list +fi +apt-get update +apt-get -y --force-yes install ola libav-tools libqtcore4 libqtgui4 libqt4-script libqtwebkit4 libftgl2 libmagick++5 tcl tk if [ "$?" -eq "0" ]; then echo "apt-get finish ok" - else "apt-get return errors!" + else echo "apt-get return errors!" fi -apt-get -f install +