Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Collection of git-buildpackage commands
#!/bin/bash
# Install Git Buildpackage
sudo apt-get install git-buildpackage cdbs debhelper
# Create tarball from tag
cd pgrouting
git archive v2.2.3 | gzip > ../tarballs/pgrouting-2.2.3-release-orig.tar.gz
# This is only for the first import and creation of a new build repository
# I'm keeping this as a reminder, but no need to use it, so it's commented out
#mkdir pgrouting-build
#cd pgrouting-build
#git init
#git-import-dsc --pristine-tar pgrouting_1.05-1~precise2.dsc
# Import new upstream version
gbp import-orig --pristine-tar ../tarballs/pgrouting_2.2.3-release.tar.gz
gbp dch -R -a -N 2.2.3
# Repeat until package builds successfully
gbp dch
gbp buildpackage --git-ignore-new
# changes needed to be committed to Git
git commit --amend .
# Upload to Launchpad
gbp buildpackage --git-tag --git-builder="debuild -S -sa"
dput ppa:georepublic/pgrouting-unstable ../build-area/pgrouting_2.2.3-release-ppa1-xenial1_source.changes
@woodbri
Copy link

woodbri commented Jun 28, 2016

on Line 8 do you need to change the tag v2.0.0-alpha to something like v2.2.3 ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment