Store old value of tags in case they were moved and not just made

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
local variable for usage

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Introduce git pkg syntax and use rpm/ as the location of packaging
Massive simplification to workflow
Based on an approach from:
 https://github.com/cypher/dotfiles/blob/master/bin/git-new-workdir
Remove switching between src and packaging

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Move common code to gp_common and use pkg_dir

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Use a sensible tarball name for git types

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
The command : git pkg    will now ensure the pkg_dir is setup if appropriate
Also support pkg_dir != rpm/

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Clean up handling of metadata from packaging file

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Fix an issue where Version/Release are interpreted as non-string values

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

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Tag --ver if it doesn't exist

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Create $DISTRO-master if it doesn't exist