&dhemail;
&dhfirstname;
&dhsurname;
git-buildpackage
&dhsection;
&git-buildpackage;Build Debian packages from a Git repository
&git-buildpackage;
treeishbranch_nameBUILD_CMDCLEAN_CMDgpg-keyidcommandcommandtag-formatdirectorydirectorytreeishDESCRIPTION
&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.tar.gz 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
OPTIONSBuild the .diff.gz and debian package although there are
uncommitted changes in the source tree.Add a git tag after a successfull build.Use BUILD_CMD instead of debuild -i\.git -I.gitUse CLEAN_CMD instead of debuild cleanverbose execution=branch_nameBranch to build the orig.tar.gz 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
.
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).
tag-formatuse this tag format when tagging Debian versions,
default is debian/<version>Don't try to create any orig.tar.gzdirectoryExport 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 themuse pristine-tar to create the orig.tar.gzretain exported build directory after builddon't build, only tag and run post-tag hooks
&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,
&man.seealso.common;
AUTHOR&dhusername; &dhemail;