diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-07-06 03:22:51 -0500 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-07-06 17:40:59 +0200 |
commit | a650ce3f8be383561fa16039723d75c154574d28 (patch) | |
tree | 2eac7ace712641032f00f9ed590acc914509b644 /docs | |
parent | 2acfc8fa4620a214822598849f01cb3fd31320cc (diff) |
Add prebuild hook
Can be used to add an upstream changelog generated from the
git repository to the build dir.
Closes: #587652
Diffstat (limited to 'docs')
-rw-r--r-- | docs/chapters/building.sgml | 3 | ||||
-rw-r--r-- | docs/manpages/git-buildpackage.sgml | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/docs/chapters/building.sgml b/docs/chapters/building.sgml index 2205940d..f68e3780 100644 --- a/docs/chapters/building.sgml +++ b/docs/chapters/building.sgml @@ -78,7 +78,8 @@ export-dir=../build-area Besides the commands for cleaning the package build dir (<option>cleaner</option> and building the package (<option>builder</option>) you can also invoke hooks during the package - build: after a succesful build (<option>postbuild</option>) and after + build: immediately before a build (<option>prebuild</option>, + after a succesful build (<option>postbuild</option>) and after creating a tag (<option>posttag</option>). Typical applications are running <productname>lintian</productname> or pushing changes into a remote repository. diff --git a/docs/manpages/git-buildpackage.sgml b/docs/manpages/git-buildpackage.sgml index a1eac1f3..3f2ed288 100644 --- a/docs/manpages/git-buildpackage.sgml +++ b/docs/manpages/git-buildpackage.sgml @@ -31,6 +31,7 @@ <arg><option>--git-keyid=</option><replaceable>gpg-keyid</replaceable></arg> <arg><option>--git-posttag=</option><replaceable>command</replaceable></arg> <arg><option>--git-postbuild=</option><replaceable>command</replaceable></arg> + <arg><option>--git-prebuild=</option><replaceable>command</replaceable></arg> <arg><option>--git-debian-tag=</option><replaceable>tag-format</replaceable></arg> <arg><option>--git-force-create</option></arg> <arg><option>--git-no-create-orig</option></arg> @@ -193,6 +194,17 @@ </listitem> </varlistentry> <varlistentry> + <term><option>--git-prebuild=</option><replaceable>command</replaceable> + </term> + <listitem> + <para>execute <replaceable>command</replaceable> from the build + directory before calling <application>debuild</application> + or the application specified via <option>--git-builder</option>.</para> + <para>Exported environment variables are: + <envar>GBP_GIT_DIR</envar> (the repository the package is being built from), + <envar>GBP_BUILD_DIR</envar> (the build dir). + </listitem> + <varlistentry> <term><option>--git-debian-tag=</option><replaceable>tag-format</replaceable> </term> <listitem> |