mozconfig Switcher
A simple TUI utility to switch between different
mozconfigs
in the Mozilla source code.
Installation
gem install mozconfig
Usage
Your mozconfig should be formatted like this, for example:
mk_add_options AUTOCLOBBER=1
# Firefox
ac_add_options --with-branding=browser/branding/nightly
ac_add_options --with-ccache=sccache
# Firefox (artifact build)
# ac_add_options --with-branding=browser/branding/nightly
# ac_add_options --enable-artifact-builds
# Thunderbird
# mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-mail-@CONFIG_GUESS@
# ac_add_options --enable-project=comm/mail
# ac_add_options --with-branding=comm/mail/branding/nightly
# ac_add_options --with-ccache=sccache
# Thunderbird (artifact build)
# mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-mail-@CONFIG_GUESS@
# ac_add_options --enable-project=comm/mail
# ac_add_options --with-branding=comm/mail/branding/nightly
# ac_add_options --enable-artifact-builds
The options are separated into "paragraphs", each one a separate configuration. This tool will comment out all of the inactive configurations. The comment above each paragraph will be the name displayed in the TUI. Any paragraph without a comment above it will remain active in all configurations.