Update for go, update pk

git-svn-id: http://photonzero.com/dotfiles/trunk@102 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
michener 2011-08-26 04:14:53 +00:00
parent 4ea00430a3
commit a9e9e6d6ba
6 changed files with 31 additions and 9 deletions

20
bin/pk
View file

@ -2,7 +2,7 @@
search () {
shift
if which pacman >/dev/null; then
pacman -Ss $1
pacman -Ss $1 || aurget -Ss $1
elif which port >/dev/null; then
port search $1
elif which portmaster >/dev/null; then
@ -15,10 +15,23 @@ search () {
fi
}
update () {
shift
if which pacman >/dev/null; then
pacman -Sy
elif which port >/dev/null; then
port selfupdate
elif which portmaster >/dev/null; then
portsnap fetch && portsnap upgrade
elif which apt-get >/dev/null; then
apt-get update
fi
}
install () {
shift
if which pacman >/dev/null; then
pacman -S $*
pacman -S $* || aurget -Ss --asroot $*
elif which port >/dev/null; then
port install $*
elif which portmaster >/dev/null; then
@ -35,5 +48,8 @@ in
"s" | "search")
search $*;;
"u" | "update")
update $*;;
esac