Latest comments

In response to: requoting in bash

TGL [Visitor]
Yup, you're absolutly right that my solution relies on backslashes being used for quoting. If that changes, it would break, and thus I fully agree your conclusion about it not being an option.

Actually, I wrote this 4 lines mainly because i've found this problem funny, but the implementation i really prefer is your original one with no printf (it's the easiest to read/understand imho, and sure it's also, by far, the fastest one).
PermalinkPermalink 02/09/06 @ 00:57

In response to: requoting in bash

Aron Griffis [Member] · http://dev.gentoo.org/~agriffis/
Hi TGL. Your implementation makes assumptions about the quoting method used by printf %q, for example it assumes that the result will never contain "<  >" for any possible "$@". This might be true at the moment, but it's an implementation detail of bash printf that is subject to change. I appreciate the effort to remove the loop, but IMHO both of my previous implementations are better since they avoid the assumption. Thanks!
PermalinkPermalink 02/08/06 @ 17:09

In response to: requoting in bash

TGL [Visitor]
This sequence works with no loop, but even more ugly:

# quote the args, with a marker aroung each one
foo=$(printf '< %q >' "${@}")
# reintroduce empty args if nothing in the middle of a marker
foo="${foo//<  >/< '' >}"
# tail of a marker + head of the next one => space
foo="${foo// >< / }"
# cleanup remaining half-markers on both sides of the string
foo="${foo#< }" ; foo="${foo% >}"
PermalinkPermalink 02/08/06 @ 01:19

In response to: mozilla braindump

Jared Breland [Visitor] · http://www.legroom.net/
Aron, thanks for the update on what's going on behind the scenes with the Mozilla ebuilds. I'd like to comment on your Extensions section.

I've created several custom packages for deployment of Firefox and Thunderbird (on Windows, but in this case the process should carry over to Linux). One of the things I wanted to do was include certain extensions that I personally consider essential to the Firefox/Thunderbird experience, of which Enigmail was certainly a member.

As you mentioned, installing extensions globally and automatically is a rather difficult process. However, after much experimentation, I was able to get the -install-global-extension to work reliably. Unfortunately, due to the default behavior of Firefox/Thunderbird to create a profile directory before doing anything else, and to display the Profile Migration wizard upon initial load, this process is needlessly complicated. In order to get it working under Windows I have to install it, run it initially to set it as the default browser and create the profile directory, wait for it to launch the profile wizard, then kill the process. I can then proceed to install extensions, one at a time, using -install-global-extension.

Under Linux, the same concepts should apply. Instead of trying to build and install the extensions as you described, just download the .xpi and install with -install-global-extension. You'd have to be root, of course, but any installation through portage would be done by root anyway. If you try to install the extension before a profile directory exists for Firefox, some trickery may need to be performed, but it should still be relatively straightforward.

I really like the idea of including popular Firefox/Thunderbird extensions in portage, just as popular modules for Perl and PHP are included. I'd be happy to help you (or another maintainer) work on this if you could use the assistance. And again, thanks for the great update. :-)
PermalinkPermalink 07/25/05 @ 15:19

In response to: mozilla braindump

Donnie Berkholz [Visitor] · http://www.livejournal.com/users/spyderous/
emake vs make has hit me a few times, and it's always come down to a broken parallel build (MAKEOPTS).

Also I know az was working on nsplugin stuff just a day or two ago, so I hope you've talked to him.
PermalinkPermalink 07/24/05 @ 09:31
November 2009
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

Aron's mostly-Gentoo web log

Search

XML Feeds

blog software

©2009 by Daniel Drake

Contact | Blog templates by Asevo | Credits: blogtool | dedicated hosting | evoTeam