One of the reasons to learn a scriping language like Bash is to automate tasks that you do over and over. I have been x86 arch testing to test packages for stabilization. First check for no open bugs then I have to add the package name to a file package.keywords. I came up with this.
#!/bin/bash bugz search -s all "$1" if [ "$1" != "" ]; then echo "$1 ~x86" >> /etc/portage/package.keywords; printf "\033[32m\n * $1 added to /etc/portage/package.keywords\033[m\n\n"; emerge -1av "$1" else echo "Enter a package!" fi
Powered by Drupal and Drupal Theme created by vigilianty.