-
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.
so we don't need to call sudo from inside of the script
- Loading branch information
Michael Dec
committed
Jul 16, 2014
1 parent
856f261
commit d138967
Showing
1 changed file
with
15 additions
and
10 deletions.
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,15 +1,20 @@ | ||
#!/bin/bash | ||
SATISFIED=0 | ||
if [ -f "/etc/debian_version" ]; then | ||
sudo apt-get install -y cmake libgtkmm-3.0-dev libglibmm-2.4-dev libtorrent-rasterbar-dev libboost-all-dev libssl-dev | ||
SATISFIED=1 | ||
fi | ||
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 [ -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." | ||
if [ "$SATISFIED" -ne "1" ]; then | ||
echo "Your system isn't supported yet." | ||
fi | ||
fi |