Dependency install script for linux. Currently only supports Arch.

This commit is contained in:
Drake Arconis
2012-09-23 00:51:29 -04:00
parent 84ec70e707
commit 77d018dbc8

18
scripts/install-deps.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
if [ "$(whoami)" != "root" ]; then
echo "Run this as root! sudo should do the trick."
exit
fi
if [ -f /etc/arch-release ]; then
echo -e "\e[1;31mArch Linux detected!\e[0m"
DEPS=`pacman -T apr apr-util base-devel boost boost-libs c-ares cmake curl db dbus-glib expat fmodex fontconfig freealut freetype2 gperftools glib2 gstreamer0.10 gtk2 hunspell libjpeg-turbo libogg libpng libvorbis openal openssl pcre qt qtwebkit sdl zlib | sed -e 's/\n/ /g'`
if [ -z "${DEPS}" ]; then
echo "Dependencies already installed."
else
pacman -S --asdeps ${DEPS}
fi
else # else
echo "Unsupported operating system."
fi