adding support for Gentoo.

This commit is contained in:
staticsafe 2012-06-16 14:27:05 -04:00
parent 7d1ab2920c
commit c056b52a45

View File

@ -30,6 +30,7 @@ distrocheck() {
hash port &>/dev/null && userdistro="OSX" # For OSX, make sure the port binary is in your PATH first. hash port &>/dev/null && userdistro="OSX" # For OSX, make sure the port binary is in your PATH first.
hash pkg_add &>/dev/null && userdistro="FreeBSD" # For FreeBSD hash pkg_add &>/dev/null && userdistro="FreeBSD" # For FreeBSD
hash equo &>/dev/null && userdistro="Sabayon" # For Sabayon hash equo &>/dev/null && userdistro="Sabayon" # For Sabayon
hash emerge &>/dev/null && userdistro != "Sabayon" && userdistro="Gentoo" # For Gentoo
} }
installpackages() { installpackages() {
@ -46,6 +47,8 @@ installpackages() {
sudo pkg_add -r vim zsh tmux git subversion mercurial most py27-pip sudo pkg_add -r vim zsh tmux git subversion mercurial most py27-pip
elif [[ "$userdistro" == "Sabayon" ]]; then elif [[ "$userdistro" == "Sabayon" ]]; then
sudo equo install vim zsh tmux git subversion mercurial most python-pip sudo equo install vim zsh tmux git subversion mercurial most python-pip
elif [[ "$userdistro" == "Gentoo" ]]; then
sudo emerge vim zsh tmux git subversion mercurial most python
else else
die 'Your distro does not have a package manager supported by this script, exiting!' die 'Your distro does not have a package manager supported by this script, exiting!'
fi fi