aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-08-04 20:14:03 +0200
committerGuido Günther <agx@sigxcpu.org>2016-08-04 21:21:58 +0200
commit51620e95d11152d3a352b60c45abf86b13464010 (patch)
tree22cf81641868c5861d5bd6d3e62fcc561f57de25 /docs
parent43a0367774bc2c31099f0fdbee358cc783e6eed6 (diff)
import-orig: export version information to postimport hook
Closes: #833429
Diffstat (limited to 'docs')
-rw-r--r--docs/manpages/gbp-import-orig.sgml30
1 files changed, 29 insertions, 1 deletions
diff --git a/docs/manpages/gbp-import-orig.sgml b/docs/manpages/gbp-import-orig.sgml
index 2220d128..e1bcace4 100644
--- a/docs/manpages/gbp-import-orig.sgml
+++ b/docs/manpages/gbp-import-orig.sgml
@@ -251,7 +251,35 @@
<term><option>--postimport=<replaceable>cmd</replaceable></option></term>
<listitem>
<para>
- run <replaceable>cmd</replaceable> after the import.
+ Run <replaceable>cmd</replaceable> after the import. The
+ hook gets the following environment variables passed:
+ <variablelist>
+ <varlistentry>
+ <term><envar>GBP_BRANCH</envar></term>
+ <listitem><para>
+ The name of the Debian packaging branch
+ </para></listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><envar>GBP_TAG</envar></term>
+ <listitem><para>
+ The name of the just created upstream tag
+ </para></listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><envar>GBP_UPSTREAM_VERSION</envar></term>
+ <listitem><para>
+ The just imported upstream version
+ </para></listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><envar>GBP_DEBIAN_VERSION</envar></term>
+ <listitem><para>
+ The Debian version of the package with a Debian
+ revision of '-1'
+ </para></listitem>
+ </varlistentry>
+ </variablelist>
</para>
</listitem>
</varlistentry>