| Building Debian Packages with git-buildpackage |
|---|
git-buildpackage [--git-ignore-new] [--git-tag] [--git-verbose] [--git-upstream-branch=branch_name] [--git-debian-branch=branch_name] [--git-builder=BUILD_CMD] [--git-cleaner=CLEAN_CMD] [--git-sign-tags] [--git-keyid=gpg-keyid] [--git-posttag=command] [--git-debian-tag=tag-format]
git-buildpackage is used to build Debian source and .deb packages from a Git repository.
git-buildpackage will, in order:
Verify that it is being executed from the proper location.
Verify that the reopository doesn't contain any uncommitted source changes.
Verify that it is being executed from the correct branch.
Build an orig.tar.gz if it doesn't exist.
Call debuild(1)
(or the application specified via --git-builder)
with arguments instructing it to ignore Git meta-data in
the diff.gz, passing along all arguments given to
git-buildpackage that don't start with --git-.
--git-ignore-new | Build the .diff.gz and debian package although there are uncommitted changes in the source tree. |
--git-tag | Add a git tag after a successfull build. |
--git-builder=BUILD_CMD | Use BUILD_CMD instead of debuild |
--git-cleaner=CLEAN_CMD | Use CLEAN_CMD instead of debuild clean |
--git-verbose | verbose execution |
--git-upstream-branch=branch_name | Branch to build the orig.tar.gz from. Default is upstream |
--git-debian-branch=branch_name | If you're not on this branch when invoking git-buildpackage
it will fail. Default is master. This is
done to make sure you don't accidentally release from a topic branch.
Not being on this branch will be ignored when using
|
--git-sign-tags | GPG sign all created tags |
--git-keyid=gpg-keyid | use this keyid for gpg signing tags |
--git-posttag=command | excecute command after tagging a new version |
--git-debian-tag=tag-format | use this tag format when tagging Debian versions |
Three configuration files are parsed to set defaults for the above commandline arguments:
| /etc/git-buildpackage/gbp.conf | system wide configuraton |
| ~/.gbp.conf | per user configuration |
| .git/gbp.conf | per working copy configuration |
See /etc/git-buildpackage/gbp.conf for an example.
All options in the config files are specified without the 'git-' prefix.
| <<< Command Reference | git-import-dsc >>> |