mozilla-b2g/B2G — pull request #154 by jhford (2012-10-26 05:42:52+00:00)
Title: split the source tree and device configuration into two scripts

This change sets us up to make it it easier to make it possible to do a fully repo managed source tree of B2G.

With this change, config.sh becomes a light wrapper on repo which understands how our manifests repository is laid out. It no longer understands any devices, so the error message for configuring an unknown devices is a little less helpful

jhford-wifi:~/b2g/b2g-upstream $ ./config.sh unknown
Get git://github.com/mozilla-b2g/b2g-manifest
remote: Counting objects: 347, done.
remote: Compressing objects: 100% (166/166), done.
remote: Total 347 (delta 130), reused 301 (delta 88)
Receiving objects: 100% (347/347), 42.92 KiB, done.
Resolving deltas: 100% (130/130), done.
From git://github.com/mozilla-b2g/b2g-manifest
* [new branch] crespo -> origin/crespo
* [new branch] crespo4g -> origin/crespo4g
* [new branch] galaxy-s2 -> origin/galaxy-s2
* [new branch] m4 -> origin/m4
* [new branch] maguro -> origin/maguro
* [new branch] master -> origin/master
* [new branch] nightly -> origin/nightly
* [new branch] otoro -> origin/otoro
* [new branch] otoro_m4-demo -> origin/otoro_m4-demo
* [new branch] panda -> origin/panda
fatal: manifest 'unknown.xml' not available
fatal: manifest unknown.xml not found
Repo sync failed

Creating the .config file for the devices as well as setting other useful variables moves to config-device.sh. In order to maintain the current user interface, the config.sh script passes a valid value to the config-device.sh script