dpkg-genchanges.man 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. .\" dpkg manual page - dpkg-genchanges(1)
  2. .\"
  3. .\" Copyright © 1995-1996 Ian Jackson <ijackson@chiark.greenend.org.uk>
  4. .\" Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
  5. .\" Copyright © 2006-2016 Guillem Jover <guillem@debian.org>
  6. .\" Copyright © 2008-2010 Raphaël Hertzog <hertzog@debian.org>
  7. .\"
  8. .\" This is free software; you can redistribute it and/or modify
  9. .\" it under the terms of the GNU General Public License as published by
  10. .\" the Free Software Foundation; either version 2 of the License, or
  11. .\" (at your option) any later version.
  12. .\"
  13. .\" This is distributed in the hope that it will be useful,
  14. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. .\" GNU General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU General Public License
  19. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. .
  21. .TH dpkg\-genchanges 1 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
  22. .nh
  23. .SH NAME
  24. dpkg\-genchanges \- generate Debian .changes files
  25. .
  26. .SH SYNOPSIS
  27. .B dpkg\-genchanges
  28. .RI [ option ...]
  29. .br
  30. .
  31. .SH DESCRIPTION
  32. .B dpkg\-genchanges
  33. reads information from an unpacked and built Debian source tree and
  34. from the files it has generated and generates a Debian upload control
  35. file
  36. .RB ( .changes " file)."
  37. .
  38. .SH OPTIONS
  39. .TP
  40. .BI \-\-build= type
  41. Specifies the build \fItype\fP from a comma-separated list of components
  42. (since dpkg 1.18.5).
  43. The allowed values are:
  44. .RS
  45. .TP
  46. .B source
  47. Upload the source package.
  48. .TP
  49. .B any
  50. Upload the architecture specific binary packages.
  51. .TP
  52. .B all
  53. Upload the architecture independent binary packages.
  54. .TP
  55. .B binary
  56. Upload the architecture specific and independent binary packages.
  57. This is an alias for \fBany,all\fP.
  58. .TP
  59. .B full
  60. Upload everything.
  61. This is alias for \fBsource,any,all\fP, and the same as the default case
  62. when no build option is specified.
  63. .RE
  64. .TP
  65. .B \-g
  66. Equivalent to \fB\-\-build=source,all\fP (since dpkg 1.17.11).
  67. .TP
  68. .B \-G
  69. Equivalent to \fB\-\-build=source,any\fP (since dpkg 1.17.11).
  70. .TP
  71. .B \-b
  72. Equivalent to \fB\-\-build=binary\fP or \fB\-\-build=any,all\fP.
  73. .TP
  74. .B \-B
  75. Equivalent to \fB\-\-build=any\fP.
  76. .TP
  77. .B \-A
  78. Equivalent to \fB\-\-build=all\fP.
  79. .TP
  80. .B \-S
  81. Equivalent to \fB\-\-build=source\fP.
  82. .PP
  83. The \fB\-s\fP\fIx\fP options control whether the original source archive is
  84. included in the upload if any source is being generated (i.e.
  85. .BR \-b " or " \-B
  86. haven't been used).
  87. .TP
  88. .B \-si
  89. By default, or if specified, the original source will be included only if
  90. the upstream version number (the version without epoch and without Debian
  91. revision) differs from the upstream version number of the previous
  92. changelog entry.
  93. .TP
  94. .B \-sa
  95. Forces the inclusion of the original source.
  96. .TP
  97. .B \-sd
  98. Forces the exclusion of the original source and includes only the diff.
  99. .fi
  100. .TP
  101. .BI \-v version
  102. Causes changelog information from all versions strictly later than
  103. .I version
  104. to be used.
  105. .TP
  106. .BI \-C changes-description
  107. Read the description of the changes from the file
  108. .I changes-description
  109. rather than using the information from the source tree's changelog
  110. file.
  111. .TP
  112. .BI \-m maintainer-address
  113. Use
  114. .I maintainer-address
  115. as the name and email address of the maintainer for this package,
  116. rather than using the information from the source tree's control file.
  117. .TP
  118. .BI \-e maintainer-address
  119. Use
  120. .I maintainer-address
  121. as the name and email address of the maintainer for this upload,
  122. rather than using the information from the source tree's changelog.
  123. .TP
  124. .BI \-V name = value
  125. Set an output substitution variable.
  126. See \fBdeb\-substvars\fP(5) for a discussion of output substitution.
  127. .TP
  128. .BI \-T substvars-file
  129. Read substitution variables in
  130. .IR substvars-file ;
  131. the default is
  132. .BR debian/substvars .
  133. No variable substitution is done on any of the fields that are output,
  134. however the special variable \fIFormat\fR will override the field of the
  135. same name. This option can be used multiple times to read substitution
  136. variables from multiple files (since dpkg 1.15.6).
  137. .TP
  138. .BI \-D field = value
  139. Override or add an output control file field.
  140. .TP
  141. .BI \-U field
  142. Remove an output control file field.
  143. .TP
  144. .BI \-c controlfile
  145. Specifies the main source control file to read information from. The
  146. default is
  147. .BR debian/control .
  148. .TP
  149. .BI \-l changelog-file
  150. Specifies the changelog file to read information from. The
  151. default is
  152. .BR debian/changelog .
  153. .TP
  154. .BI \-f files-list-file
  155. Read the list of files to be uploaded here, rather than using
  156. .BR debian/files .
  157. .TP
  158. .BI \-F changelog-format
  159. Specifies the format of the changelog. See \fBdpkg\-parsechangelog\fP(1)
  160. for information about alternative formats.
  161. .TP
  162. .BI \-u upload-files-dir
  163. Look for the files to be uploaded in
  164. .I upload-files-dir
  165. rather than
  166. .B ..
  167. .RB ( dpkg\-genchanges
  168. needs to find these files so that it can include their sizes and
  169. checksums in the
  170. .B .changes
  171. file).
  172. .TP
  173. .B \-q
  174. Usually
  175. .B dpkg\-genchanges
  176. will produce informative messages on standard error, for example about
  177. how many of the package's source files are being uploaded.
  178. .B \-q
  179. suppresses these messages.
  180. .TP
  181. .BR \-O [\fIfilename\fP]
  182. Print the changes file to standard output (the default) or to \fIfilename\fP
  183. if specified (since dpkg 1.18.5).
  184. .TP
  185. .BR \-? ", " \-\-help
  186. Show the usage message and exit.
  187. .TP
  188. .BR \-\-version
  189. Show the version and exit.
  190. .
  191. .SH FILES
  192. .TP
  193. .B debian/files
  194. The list of generated files which are part of the upload being
  195. prepared.
  196. .B dpkg\-genchanges
  197. reads the data here when producing a
  198. .B .changes
  199. file.
  200. .
  201. .SH SEE ALSO
  202. .ad l
  203. .BR deb\-substvars (5),
  204. .BR deb\-src\-control (5),
  205. .BR deb\-src\-files (5),
  206. .BR deb\-changelog (5),
  207. .BR deb\-changes (5).