Add a --build flag so gp_mkpkg just creates patches/tarball without hacking the spec/yaml

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Set GIT_NAME/EMAIL environment variables for use in scripts

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

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

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Ignore submodules when making patches

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Look for correct #### when stripping comments

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Don't clear patchtag. Update comments and improve hint to checkout master when done with --edit

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Abort if --edit message is not changed

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Move git_tag_cleanly and cleanup to gp_common

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Support multiple args in git_tag_cleanly

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

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Don't cleanup on EXIT - do "git checkout $initial_branch" when all is well

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Don't create mer-master if no patches exist

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Improve comments and docs

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Use fatal more and allow fatal <<EOF

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