Skip to content

Commit

Permalink
Merge pull request #27 from grepwood/master
Browse files Browse the repository at this point in the history
Added Gentoo and Ubuntu 12.04 support into deps.sh
  • Loading branch information
benwaffle committed Jul 16, 2014
2 parents 2e28acd + d138967 commit df1b7c2
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion scripts/deps.sh
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
sudo apt-get install -y cmake libgtkmm-3.0-dev libglibmm-2.4-dev libtorrent-rasterbar-dev libboost-all-dev libssl-dev
#!/bin/bash
SATISFIED=0
USER=`whoami`
if [ "$USER" != "root" ]; then
echo "You have to sudo or be root to install dependencies."
else
if [ -f "/etc/debian_version" ]; then
apt-get install -y cmake libgtkmm-3.0-dev libglibmm-2.4-dev libtorrent-rasterbar-dev libboost-all-dev libssl-dev
SATISFIED=1
fi

if [ -f "/etc/gentoo-release" ]; then
emerge -vq dev-util/cmake dev-cpp/gtkmm dev-cpp/glibmm net-libs/rb_libtorrent dev-libs/boost dev-libs/openssl
SATISFIED=1
fi

if [ "$SATISFIED" -ne "1" ]; then
echo "Your system isn't supported yet."
fi
fi

0 comments on commit df1b7c2

Please sign in to comment.