emerge 303 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. if test "$1" = "--ask"
  3. then
  4. pacman -S $2
  5. elif test "$1" = "--sync"
  6. then
  7. apt-get update
  8. elif test "$1" = "--search"
  9. then
  10. pacman -Ss $2 $3
  11. elif test "$1" = "--update"
  12. then
  13. apt-get update && apt-get upgrade
  14. elif test "$1" = "--unmerge"
  15. then
  16. apt-get remove $2
  17. else
  18. echo E: Invalid operation $1
  19. fi