Tag Cloud

An Easier way to Manage Mozconfigs

Mozconfigwrapper is a tool inspired by Doug Hellman's magnificent virtualenvwrapper. In a
nutshell, mozconfigwrapper hides all of your mozconfigs into a configurable directory (defaults to
~/.mozconfigs), and lets you easily switch, create, remove, edit and list them. Mozconfigwrapper is
Unix only for now.

Mozconfigwrapper is brand new. I still need to add some better error checking and do testing on OSX.
So if you have any problems installing or using it, please let me know or file an issue.

To edit the currently active mozconfig, run (the $EDITOR variable must be set):

mozconfig -e

Configuration

By default mozconfigs are stored in the ~/.mozconfigs directory, but you can override this by
setting the $BUILDWITH_HOME environment variable.
e.g, add:

export BUILDWITH_HOME=~/my/custom/mozconfig/path

to your ~/.bashrc file.

When you make a new mozconfig, it will be populated with some basic build commands and the name of
the mozconfig will be appended to the end of the OBJDIR instruction. You can modify what gets
populated by default by editing the ~/.mozconfigs/.template file. For example, if I wanted my
default configuration to store object directories in a folder called objdirs and enable debugging
and tests, I'd edit the ~/.mozconfigs/.template file to look like: