Skip to content

Instantly share code, notes, and snippets.

@dkastl
Last active July 7, 2016 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkastl/5802631 to your computer and use it in GitHub Desktop.
Save dkastl/5802631 to your computer and use it in GitHub Desktop.
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