Build OBM Thunderbird Connector

To build connector follow this steps:

    Long directory paths can lead to build problems (fail to install PIP or Virtualenv, file does not exists errors, etc.). This can also happen with long mount point paths.
    Please read [this Mozilla article](https://developer.mozilla.org/en-US/docs/Simple_Thunderbird_build#Get_the_source) for complete details.

* Install a Thunderbird compilation environment by following instructions [here](https://developer.mozilla.org/en/Simple_Thunderbird_build#Installing_bui...).

* Get Thunderbird 3.1 sources:

      hg clone http://hg.mozilla.org/releases/comm-1.9.2/
      cd comm-1.9.2/
      python client.py checkout

* Take a coffee while downloading

* Setup a basic .mozconfig file:

	echo 'ac_add_options --enable-application=mail' > .mozconfig                   # let's build Thunderbird...
	echo 'mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-tb-release' >> .mozconfig   # ...in this directory...
	echo 'mk_add_options MOZ_MAKE_FLAGS="-j4"' >> .mozconfig                       # ...quickly...
	echo 'ac_add_options --disable-crashreporter' >> .mozconfig                    # ...no crash.

* Do a build of Thunderbird (needed only once)

	make -f client.mk

* Take another coffee

* Now you have a built Thunderbird (whoot)

* checkout sources of connector:

	git clone http://git.obm.org/lightning-connector mozilla/extensions/obm

* edit .mozconfig to enable build of connector:

	echo 'ac_add_options --enable-extensions=default,obm' >> .mozconfig

* Final step: last build

	make -f client.mk build

* Resulting xpi is in *objdir-tb-release/mozilla/dist/xpi-stage*

After that when you modify connector or update sources you can do a simple build of extension only:

	cd objdir-tb-release/mozilla/extensions/obm
	make

Bodega