From 0e08cf54d923db028eff69f4c2a4d99a1f52d774 Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Thu, 6 Mar 2008 08:52:07 +0100 Subject: explain howto push tags and mention linda and lintian (Closes: #469436) --- docs/chapters/building.sgml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/docs/chapters/building.sgml b/docs/chapters/building.sgml index 16360b6e..02ed91b5 100644 --- a/docs/chapters/building.sgml +++ b/docs/chapters/building.sgml @@ -2,9 +2,14 @@ Building packages from the &git; repository In order to build a &debian; package from the &git; repository you use: - &git-buildpackage;. During the development phase (when you're either not - on the debian-branch or when you have uncommitted - changes in your repository) you'll usually use: + &git-buildpackage;. This builds the upstream tarball as will be described below and + invokes &debuild; to build the package. To use another build command you + can use the option as described later in the manual + but &debuild; is nice since it can invoke linda + und lintian. + During the development phase (when you're either not on the + debian-branch or when you have uncommitted changes in + your repository) you'll usually use: &git-buildpackage; @@ -45,7 +50,6 @@ If you want to default to build in a separate build area you can specify the directory to use in the gbp.conf. - [git-buildpackage] # use a build area relative to the git repository @@ -53,5 +57,22 @@ export-dir=../build-area # to use the same build area for all packages use an absolute path: #export-dir=/home/debian-packages/build-area + + + + Pushing into a remote repository: + If you want to push your changes automatically after a succesful build and tag + you can use &git-buildpackage;'s posttag hook: + +git-buildpackage ="git push && git push --tags" + + This assumes you have set up a remote repository to push to in either + .git/config or + .git/remotes/. Setting up the posttag hook in + .gbp.conf looks like: + +="git push git.debian.org && git push --tags git.debian.org" + + -- cgit v1.2.3