#!/bin/sh apt-get install -y lsb DISTRO=$(lsb_release -si) UVERSION=$(lsb_release -sc) if [ `whoami` != "root" ] ; then echo "$0: You must be root to run this script" exit 1 fi echo "Running Icetray setup for Debian '$UVERSION'" COMMON_PKGS=" aptitude autoconf automake bzip2 cmake curl g++ gcc libhtml-parser-perl libbz2-dev libmysqlclient15-dev libgl1-mesa-dev libglut3-dev libpcre3-dev libssl-dev libx11-dev libxft-dev libxi-dev libxmu-dev libxpm-dev libxt-dev libxml2-dev libfreetype6-dev m4 make libncurses5-dev patch python-dev rsync subversion tcl8.4-dev texinfo wget python-urwid " apt-get update echo -n "Installing packages..." echo > Ubuntu.log if [ $? != 0 ] ; then echo "$0: Unable to create log file 'Ubuntu.log'. Please run in writable directory." exit 1 fi apt-get install -y $COMMON_PKGS >Ubuntu.log 2>&1 if [ $? -ne 0 ] ; then cat Ubuntu.log echo <