Permalink
Browse files

Added Gentoo :-)

  • Loading branch information...
1 parent 24807fe commit a466965c836a65cae93509c70020430b0557b146 @NTICompass NTICompass committed Dec 17, 2011
Showing with 22 additions and 0 deletions.
  1. +3 −0 canhas
  2. +3 −0 distro_check.sh
  3. +3 −0 donotwant
  4. +3 −0 kthx
  5. +4 −0 moar
  6. +3 −0 notsureifwant
  7. +3 −0 want
View
3 canhas
@@ -7,6 +7,9 @@ case $(distro_check.sh) in
"Debian" | "Ubuntu")
aptitude search $1
;;
+"Gentoo")
+ eix $1
+ ;;
"Fedora")
yum search $1
;;
View
3 distro_check.sh
@@ -9,6 +9,9 @@ case $(uname -r) in
*-generic)
echo "Ubuntu"
;;
+*-gentoo)
+ echo "Gentoo"
+ ;;
*x86_64)
echo "Fedora"
;;
View
3 donotwant
@@ -7,6 +7,9 @@ case $(distro_check.sh) in
"Debian" | "Ubuntu")
sudo aptitude purge $@
;;
+"Gentoo")
+ sudo emerge --unmerge --ask $@
+ ;;
"Fedora")
sudo yum erase $@
;;
View
3 kthx
@@ -15,6 +15,9 @@ case $(distro_check.sh) in
"Ubuntu")
sudo service $target $action
;;
+"Gentoo")
+ sudo /etc/init.d/$target $action
+ ;;
*)
echo "Sorry, I don't know that one."
;;
View
4 moar
@@ -8,6 +8,10 @@ case $(distro_check.sh) in
sudo aptitude update
sudo aptitude upgrade --full-resolver
;;
+"Gentoo")
+ sudo emerge --sync && sudo layman -S && sudo eix-update
+ sudo emerge --ask --verbose --update --newuse --deep --with-bdeps=y world
+ ;;
"Fedora")
sudo yum update
;;
View
3 notsureifwant
@@ -7,6 +7,9 @@ case $(distro_check.sh) in
"Debian" | "Ubuntu")
aptitude show $1
;;
+"Gentoo")
+ emerge -pv $1
+ ;;
"Fedora")
yum info $1
;;
View
3 want
@@ -7,6 +7,9 @@ case $(distro_check.sh) in
"Debian" | "Ubuntu")
sudo aptitude install $@
;;
+"Gentoo")
+ sudo emerge -av $@
+ ;;
"Fedora")
sudo yum install $@
;;

0 comments on commit a466965

Please sign in to comment.