Stop processing forwards and give error if invalid spec file path is given.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Check that Source0 line exists and give error if it doesn't.
Also accept source lines with Source: instead of Source0:.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
QtCreator would like to know all about our targets so provide updateQtCreatorTargets

usage: updateQtCreatorTargets --name $target --target-xml /srv/mer/targets/target.xml
This will add/update the xml with qmake -query and gcc -dumpmachine data for $target

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Add --delete support to updateQtCreatorTargets

Signed-off-by: David Greaves <david.greaves@jollamobile.com>