mozilla-b2g/B2G — pull request #60 by jhford (2012-07-11 00:30:59+00:00)
Title: Use an XML file for each device

This pull request is 50% of the solution to B2G issue #54.

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.