-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from grepwood/master
Added Gentoo and Ubuntu 12.04 support into deps.sh
- Loading branch information
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |