Skip to content

Instantly share code, notes, and snippets.

@comargo
Last active July 21, 2017 17:22
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 comargo/38dfb4fbdd350b105dc759fade4f89e6 to your computer and use it in GitHub Desktop.
Save comargo/38dfb4fbdd350b105dc759fade4f89e6 to your computer and use it in GitHub Desktop.
gbp walkthrough

GBP Walkthrough

Start new package

git clone <repo>
dh_make -p <pkgName>_<version> -c gpl3 -s --createorig
<put gbp.conf to debian/gbp.conf>
<edit debian/* files>
<change distribution in debian/changelog to UNRELEASED>
gbp dch -a

Make first release

gbp dch -a --release
gbp buildpackage
gbp buildpackage -S --git-tag

Make next releases

gbp dch --release
<edit changelog file for corresponding version if needed>
gbp buildpackage
gbp buildpackage -S --git-tag
[DEFAULT]
cleaner = fakeroot debian/rules clean
upstream-tag = v%(version)s
upstream-branch = master
sign-tags = True
export-dir = build
submodules = True
dist = xenial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment