Tag Archives: bash

Portage Hooks

Now that school is done for the 2009-2010 year, I’m back at it in Neuvoo again. I’m finishing off a long-planned and fairly major addition to portage I call “portage hooks.” The fun thing is I’ve submitted some patches to zmedico and the response has actually been more positive than previous experiences. solar seemed to be (tentatively?) liking the idea as well.

So, here’s what portage hooks are all about. If you have portage-utils installed, you will have an /etc/portage/postsync.d/ directory. Scripts in this directory are executed after portage syncs the tree. I thought this was a great idea, and I thought it should be expanded so there are other opportunities for unofficial extensions. Continue reading


The deadly Mr. rm

Can you tell the difference? I almost didn’t.

jacob@jacob-gdesktop ~/watch $ ls
$HOME  jacob  watch-site.sh
jacob@jacob-gdesktop ~/watch $ rm -iR "$HOME"
jacob@jacob-gdesktop ~/watch $ rm -iR '$HOME'

Thank goodness for -i…