eopkg 369 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. install() {
  3. if test "$1" = "--reinstall"
  4. then
  5. pacman -Rs $2
  6. pacman -S $2
  7. else
  8. pacman -S $1
  9. }
  10. if test "$1" = "install"
  11. then
  12. install $2 $3
  13. elif test "$1" = "update"
  14. then
  15. pacman -Sy
  16. elif test "$1" = "info"
  17. then
  18. apt-cache show $2
  19. elif test "$1" = "upgrade"
  20. then
  21. apt-get upgrade
  22. elif test "$1" = "remove"
  23. then
  24. pacman -Rs $2
  25. else
  26. echo E: Invalid operation $1
  27. fi