&dhemail;
&dhfirstname;
&dhsurname;
git-buildpackage
&dhsection;
&git-buildpackage;Build Debian packages from a Git repository
&git-buildpackage;
[auto|on|off][auto|on|off]treeishbranch_nameBUILD_CMDCLEAN_CMDDISTARCHgpg-keyidcommandcommandcommandtag-formatdirectorytypeleveldirectorytreeishDESCRIPTION
&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 repository doesn't contain any
uncommitted source changes.Verify that it is being executed from the
correct branch.
(Optionally) export the source tree to a separate build area
Build an orig tarball if it doesn't exist.Call debuild(1)
(or the application specified via )
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-.
(Optionally) tag the tree after a successful build
(Optionally) call a post build hook - e.g. to run &lintian;
(Optionally) call a post tag hook - e.g. to push the results to a remote
repository after creating the tag
OPTIONSDon't abort if there are uncommitted changes in the source tree
or the current branch doesn't match the
debian-branch.
Add a git tag after a successfull build.Use BUILD_CMD instead of debuild -i\.git -I.gitUse CLEAN_CMD instead of debuild cleanBuild package using git-pbuilder. Note that
this overwrites any and
options.Build for distribution DIST when
using --git-pbuilder. If unset build for the
unstable distribution.Build for architecture ARCH when
using --git-pbuilder. If unset no architecture is
passed to git-pbuilder.
verbose execution[auto|on|off]Wheter to use colored output.[auto|on|off]Wheter to send a desktop notification after the build.=branch_nameBranch to build the orig tarball from if no tag matching the
upstream version is found. Default is
upstream. You can give any treeish object
here.=branch_nameIf 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
.
Don't check if the current branch matches
debian-branch.GPG sign all created tagsgpg-keyiduse this keyid for gpg signing tagscommandexcecute command after tagging a new
version.Exported environment variables are:
GBP_TAG (the name of the generated tag),
GBP_BRANCH (the branch the package was build from) and
GBP_SHA1 (the sha1 of the commit the tag was created
at).commandexcecute command after succesful
build. Exported environment variables are:
GBP_CHANGES_FILE (the name of the generated changes
file), GBP_BUILD_DIR (the build dir).
commandexecute command from the build
directory before calling debuild
or the application specified via .Exported environment variables are:
GBP_GIT_DIR (the repository the package is being built from),
GBP_BUILD_DIR (the build dir).
tag-formatuse this tag format when tagging Debian versions,
default is debian/<version>Force creation of an orig tarball (overwriting a pre-existing one if present)Don't try to create any orig tarballExtract orig tarball when using export-dir option (analog to mergeWithUpstream in svn-bp)directoryExport the current branch head (or the treeish object given via
to directory
before building.treeishInstead of exporting the current branch head, export the
treeish object treeish. The special name
INDEX exports the current index whereas
the special name WC exports the current working
copy as is.directorySearch for original tarballs in directory instead of generating themtypeSpecifies the upstream tarball compression type. This will be
used to locate and build the upstream tarball if necessary. The
default is auto which derives the
compression type from the pristine-tar branch if available and falls
back to gzip otherwise. Other options are
gzip, bzip2,
lzma and xz.
levelSpecifies the upstream tarball compression level if an upstream tarball needs to be built.retain exported build directory after builddon't build, only tag and run post-tag hooksdon't fail tag operations if a tag with the same version
already exists
&man.git.config-files;
All options in the config files are specified without the 'git-' prefix.SEE ALSOgit-import-dsc1,
git-import-dscs1,
git-import-orig1,
git-dch1,
git-pbuilder1,
&man.seealso.common;
AUTHOR&dhusername; &dhemail;