maillog: 12/01/2005-13:46:26(-0500): Lisa Seelye types > On Wed, 2005-01-12 at 18:39 +0300, Vitaly Ivanov wrote: > > Hello all > > Please make Gentoo offline user's life more easier. > > Why not play with FETCH_COMMAND in /etc/make.conf?
Magnificent idea!
I had trouble putting it to use, so here is a complete sample for those
who had trouble like me:
MAGIC="some_random_data,_possibly_without_funny_symbols_to_break_it"
FETCHCOMMAND="echo \"${MAGIC} \${URI}\"" emerge -f kde 2>/dev/null | grep
"^${MAGIC}" | awk '{print $2}'
Setting MAGIC="wget -c" actually even lets you pass the above to the
shell interpreter:
$ FETCHCOMMAND="echo \"${MAGIC} \${URI}\"" emerge -f kde 2>/dev/null | grep
"^${MAGIC}" > tofetch
$ sh tofetch
--
\ Georgi Georgiev \ I owe the government $3400 in taxes. So I \
/ [EMAIL PROTECTED] / sent them two hammers and a toilet seat. - /
\ +81(90)6266-1163 \ - Michael McShane \
pgpAsGLHahNfk.pgp
Description: PGP signature
