modelbuilder: name the main module like the first module.
authorJean Privat <jean@pryen.org>
Mon, 28 Apr 2014 18:05:58 +0000 (14:05 -0400)
committerJean Privat <jean@pryen.org>
Mon, 28 Apr 2014 18:05:58 +0000 (14:05 -0400)
commit601480a1c1220f2e586c8d5a62e3b696eecc45c2
treee315c424a7059811723dd33135dcf1f59cfda529
parent03c0956232a8bd453c7e30f2f33ecb66a984fbb0
modelbuilder: name the main module like the first module.

It is the way done by the compilers, and a lot of parts use
`mainmodule.name` to name things when `-m` is used.

So, in order to not broke the compilers parts,
generalize the idea in phases.

Note: the implicit main-module have no projets associated, so things
should not use "<main>" to identify then.

Signed-off-by: Jean Privat <jean@pryen.org>
src/modelbuilder.nit