docs: Document gbp import-orig --postunpack
authorGuido Günther <agx@sigxcpu.org>
Thu, 25 Apr 2019 15:30:53 +0000 (17:30 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 25 Apr 2019 15:34:00 +0000 (17:34 +0200)
docs/manpages/gbp-import-orig.xml

index b3ca70275926074b3ac2391550bb804cd027df3e..7b040a1414e9261e3e6c65d965bc55c8e5eb5962 100644 (file)
@@ -36,6 +36,7 @@
       <arg><option>--[no-]filter-pristine-tar</option></arg>
       <arg><option>--[no-]symlink-orig</option></arg>
       <arg><option>--postimport=cmd</option></arg>
+      <arg><option>--postunpack=cmd</option></arg>
       <arg><option>--[no-]interactive</option></arg>
       <arg><option>--[no-]rollback</option></arg>
       <group choice="plain">
           </para>
         </listitem>
       </varlistentry>
+      <varlistentry>
+        <term><option>--postunpack=<replaceable>cmd</replaceable></option></term>
+        <listitem>
+          <para>
+            Run <replaceable>cmd</replaceable> after the import. This can be useful
+           to e.g. convert or remove certain files prior to the import.
+            The hook gets passed the following environment variables:
+         <variablelist>
+           <varlistentry>
+             <term><envar>GBP_TMP_DIR</envar></term>
+             <listitem><para>
+               The temporary directory the tarballs are unapcked into.
+             </para></listitem>
+           </varlistentry>
+           <varlistentry>
+             <term><envar>GBP_GIT_DIR</envar></term>
+             <listitem><para>
+               The directory of the git repository where the tarball
+               will be imported into.
+             </para></listitem>
+           </varlistentry>
+         </variablelist>
+          </para>
+        </listitem>
+      </varlistentry>
       <varlistentry>
         <term><option>--uscan</option></term>
         <listitem>