gbp-import-dsc.sgml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <refentry id="man.gbp.import.dsc">
  2. <refentryinfo>
  3. <address>
  4. &dhemail;
  5. </address>
  6. <author>
  7. &dhfirstname;
  8. &dhsurname;
  9. </author>
  10. </refentryinfo>
  11. <refmeta>
  12. <refentrytitle>gbp-import-dsc</refentrytitle>
  13. &dhsection;
  14. </refmeta>
  15. <refnamediv>
  16. <refname>gbp-import-dsc</refname>
  17. <refpurpose>Import &debian; packages into a &git; repository</refpurpose>
  18. </refnamediv>
  19. <refsynopsisdiv>
  20. <cmdsynopsis>
  21. &gbp-import-dsc;
  22. &man.common.options.synopsis;
  23. <arg><option>--allow-same-versions</option></arg>
  24. <arg><option>--author-date-is-committer-date</option></arg>
  25. <arg><option>--author-is-committer</option></arg>
  26. <arg><option>--debian-branch=</option><replaceable>branch_name</replaceable></arg>
  27. <arg><option>--debian-tag=</option><replaceable>tag-format</replaceable></arg>
  28. <arg><option>--download</option></arg>
  29. <arg><option>--filter=</option><replaceable>pattern</replaceable></arg>
  30. <arg><option>--keyid=</option><replaceable>gpg-keyid</replaceable></arg>
  31. <arg><option>--[no-]create-missing-branches</option></arg>
  32. <arg><option>--[no-]pristine-tar</option></arg>
  33. <arg><option>--[no-]sign-tags</option></arg>
  34. <arg><option>--skip-debian-tag=</option></arg>
  35. <arg><option>--upstream-branch=</option><replaceable>branch_name</replaceable></arg>
  36. <arg><option>--upstream-tag=</option><replaceable>tag-format</replaceable></arg>
  37. <arg choice="plain"><replaceable>debian-source.dsc</replaceable></arg>
  38. </cmdsynopsis>
  39. <cmdsynopsis>
  40. &gbp-import-dsc;
  41. <arg><option>options</option></arg>
  42. <arg choice="req"><option>--download</option></arg>
  43. <arg><option>--[no-]allow-unauthenticated</option></arg>
  44. <group choice="plain">
  45. <arg><replaceable>URL</replaceable></arg>
  46. <arg><replaceable>source-package</replaceable></arg>
  47. </group>
  48. </cmdsynopsis>
  49. </refsynopsisdiv>
  50. <refsect1>
  51. <title>DESCRIPTION</title>
  52. <para>
  53. &gbp-import-dsc; imports a &debian; source package into a &git; repository,
  54. notes the package version in the commit logs, and commits the change. All
  55. information, including package name, version, &debian; diffs, and upstream
  56. source, is automatically detected from the source package.
  57. </para>
  58. <para>
  59. If the command is run from within an existing repository, it will import
  60. into this; if not, a new repository named as the Debian source package is
  61. created.
  62. </para>
  63. </refsect1>
  64. <refsect1>
  65. <title>OPTIONS</title>
  66. <variablelist>
  67. &man.common.options.description;
  68. <varlistentry>
  69. <term><option>--upstream-branch</option>=<replaceable>branch_name</replaceable>
  70. </term>
  71. <listitem>
  72. <para>
  73. The branch in the &git; repository the upstream sources are put
  74. onto. Default is <replaceable>upstream</replaceable>.
  75. </para>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry>
  79. <term><option>--debian-branch</option>=<replaceable>branch_name</replaceable>
  80. </term>
  81. <listitem>
  82. <para>
  83. The branch in the &git; repository the debian sources are put
  84. onto. Default is <replaceable>master</replaceable>.
  85. </para>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry>
  89. <term><option>--[no-]sign-tags</option>
  90. </term>
  91. <listitem>
  92. <para>
  93. GPG sign all created tags
  94. </para>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry>
  98. <term><option>--keyid=</option><replaceable>gpg-keyid</replaceable>
  99. </term>
  100. <listitem>
  101. <para>
  102. use this keyid for gpg signing tags
  103. </para>
  104. </listitem>
  105. </varlistentry>
  106. <varlistentry>
  107. <term><option>--debian-tag=</option><replaceable>tag-format</replaceable>
  108. </term>
  109. <listitem>
  110. <para>
  111. use this tag format when tagging &debian; versions,
  112. default is <replaceable>debian/%(version)s</replaceable>
  113. </para>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry>
  117. <term><option>--upstream-tag=</option><replaceable>tag-format</replaceable>
  118. </term>
  119. <listitem>
  120. <para>
  121. use this tag format when tagging upstream versions,
  122. default is <replaceable>upstream/%(version)s</replaceable>
  123. </para>
  124. </listitem>
  125. </varlistentry>
  126. <varlistentry>
  127. <term><option>--skip-debian-tag</option>
  128. </term>
  129. <listitem>
  130. <para>
  131. Don't create &debian; tag after importing the &debian; patch. This can be
  132. useful if you already created a package but want to further work on
  133. it after importing it into git.
  134. </para>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry>
  138. <term><option>--filter=</option><replaceable>pattern</replaceable>
  139. </term>
  140. <listitem>
  141. <para>
  142. filter out files glob-matching pattern. Can be given multiple times.
  143. </para>
  144. </listitem>
  145. </varlistentry>
  146. <varlistentry>
  147. <term><option>--pristine-tar</option>
  148. </term>
  149. <listitem>
  150. <para>
  151. generate pristine-tar delta file
  152. </para>
  153. </listitem>
  154. </varlistentry>
  155. <varlistentry>
  156. <term><option>--download</option>
  157. </term>
  158. <listitem>
  159. <para>
  160. Download the source package instead of looking for it in the local
  161. file system. The argument can either be a
  162. <replaceable>source-package</replaceable> name or a
  163. <replaceable>URL</replaceable>. The former uses &apt-get; to download
  164. the source while the later uses &dget;.
  165. </para>
  166. </listitem>
  167. </varlistentry>
  168. <varlistentry>
  169. <term><option>--allow-unauthenticated</option>
  170. </term>
  171. <listitem>
  172. <para>
  173. Whether to skip signature verification on downloads.
  174. </para>
  175. </listitem>
  176. </varlistentry>
  177. <varlistentry>
  178. <term><option>--allow-same-version</option>
  179. </term>
  180. <listitem>
  181. <para>
  182. Allow one to import a package with the same debian version.
  183. </para>
  184. </listitem>
  185. </varlistentry>
  186. <varlistentry>
  187. <term><option>--author-is-committer</option>
  188. </term>
  189. <listitem>
  190. <para>
  191. When importing the &debian; patch, use the author identity as
  192. committer identity.
  193. </para>
  194. </listitem>
  195. </varlistentry>
  196. <varlistentry>
  197. <term><option>--author-date-is-committer-date</option>
  198. </term>
  199. <listitem>
  200. <para>
  201. When importing the &debian; patch, use the author date as
  202. committer date.
  203. <warning>
  204. <para>
  205. &git; will subtly misbehave if the committer date of a commit is not
  206. later than or equal to all its parents.
  207. </para>
  208. </warning>
  209. </para>
  210. </listitem>
  211. </varlistentry>
  212. <varlistentry>
  213. <term><option>--[no-]create-missing-branches</option>
  214. </term>
  215. <listitem>
  216. <para>
  217. Create missing upstream and debian branch if missing.
  218. </para>
  219. </listitem>
  220. </varlistentry>
  221. </variablelist>
  222. </refsect1>
  223. <refsect1>
  224. &man.gbp.config-files;
  225. </refsect1>
  226. <refsect1>
  227. <title>SEE ALSO</title>
  228. <para>
  229. <xref linkend="man.gbp.import.dscs"/>,
  230. <xref linkend="man.gbp.buildpackage"/>,
  231. <xref linkend="man.gbp.import.orig"/>,
  232. <xref linkend="man.gbp.dch"/>,
  233. <citerefentry>
  234. <refentrytitle>apt-get</refentrytitle>
  235. <manvolnum>1</manvolnum>
  236. </citerefentry>,
  237. <citerefentry>
  238. <refentrytitle>dget</refentrytitle>
  239. <manvolnum>1</manvolnum>
  240. </citerefentry>,
  241. <xref linkend="man.gbp.conf"/>,
  242. &man.seealso.common;
  243. </para>
  244. </refsect1>
  245. <refsect1>
  246. <title>AUTHOR</title>
  247. <para>
  248. &dhusername; &dhemail;
  249. </para>
  250. </refsect1>
  251. </refentry>