Last active
July 7, 2016 16:57
-
-
Save dkastl/5802631 to your computer and use it in GitHub Desktop.
Collection of git-buildpackage commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
on Line 8 do you need to change the tag v2.0.0-alpha to something like v2.2.3 ??