John Myers posted <[EMAIL PROTECTED]>, excerpted below, on Fri, 18 Feb 2005 10:21:13 -0800:
> Perhaps some sort of 'hook' could be added to emerge sync that would allow > a program to be run after every sync? Why? Those who want such a thing can simply create a script that does it for them and invoke it instead of emerge sync. That's what I've done. I have a script called esyncw (short for emerge sync world, I've other e* scripts as well) that completes the emerge sync, and immediately does an emerge -avfuD world, giving me a chance to see what'll be downloaded and to say yes or no. That's what scripting is for, to help automate tasks performed repeatedly, the same items in the same order each time. No hooks needed as it's already easy enough for a sysadmin to arrange if that's what they want. They could even call it "emerge", place it earlier in the path, and if the only command line parameter added was "sync", run the sync and then the additional stuff, or if not, simply invoke Gentoo's emerge, passing the parameters to it as necessary. I do something similar with other commands, and have /usr/local/(s)bin set first in the path so my version gets to process any parameters I pass first, before it gets sent to the normal version if the command line doesn't invoke any of my special parameters. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman in http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html -- [email protected] mailing list
