Split ci-buildpackage into smaller tools without policy
ci-buildpackage has two main jobs; it builds the source package and uploads it to OBS, while also submitting a request iff the build was for a tag.
This ends up complicating the script as well as taking all policy away from the gitlab-ci job. Preventing e.g. just running the build for testing purposes without uploading.
This split ci-buildpackage in a simpler wrapper script around git-buildpackage which sets up the build environment etc and a new ci-obs-upload script to dput into obs; Both scripts look at the RELEASE environment variable for release vs snapshot mode. In snapshot mode ci-buildpackage adds a deb-git-version-gen based version, while ci-obs-upload in release mode will also run submitrequest
Signed-off-by: Sjoerd Simons sjoerd.simons@collabora.co.uk