mozilla-b2g/B2G — pull request #66 by jhford (2012-07-12 22:53:06+00:00)
Title: Use an xml file for each device in a single branch (redux)

This pull request is 50% of the solution to B2G issue #54. Originally, this was pull request #60, but I managed to completely, horribly screw up the history on that, so I'm starting over.

This patch does a few important things:

1) teach config.sh that instead of having a branch for each device type, what we really want is to have a branch for each release/project branch and use a different xml file for each device in each given branch

2) use option flags instead of positional arguments. I have a basic system for backwards compatibility, where any bare argument that matches a valid device name is assumed to be the device requested and any bare argument that matches *.xml is assumed to be a local manifest that describes the desired setup. This is intended to be a workaround until CI systems can be adapted and documentation updated.

3) move local manifest repo creation logic to a function so a simpler code path can be used in repo_sync

4) use fewer global variables and use named variables instead of $1, $2, etc.