dpkg-parsechangelog.1 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. .TH dpkg\-parsechangelog 1 "2008-01-13" "Debian Project" "dpkg utilities"
  2. .SH NAME
  3. dpkg\-parsechangelog \- parse Debian changelog files
  4. .
  5. .SH SYNOPSIS
  6. .B dpkg\-parsechangelog
  7. .RI [ options ]
  8. .
  9. .SH DESCRIPTION
  10. .B dpkg\-parsechangelog
  11. reads and parses the changelog of an unpacked Debian source tree and
  12. outputs the information in it to standard output in a machine-readable
  13. form.
  14. .
  15. .SH OPTIONS
  16. .TP
  17. .BI \-l changelogfile
  18. Specifies the change log file to read information from. The
  19. default is
  20. .BR debian/changelog .
  21. .TP
  22. .BI \-F changelogformat
  23. Specifies the format of the changelog. By default the format is read
  24. from a special line near the bottom of the changelog or failing that
  25. defaults to the debian standard format.
  26. .TP
  27. .BI \-L libdir
  28. Specify an additional directory to search for parser scripts.
  29. This directory is searched before the default directories
  30. which are currently
  31. .BR /usr/local/lib/dpkg/parsechangelog " and "
  32. .BR /usr/lib/dpkg/parsechangelog .
  33. .TP
  34. .BR \-h ", " \-\-help
  35. Show the usage message and exit.
  36. .TP
  37. .BR \-\-version
  38. Show the version and exit.
  39. .SS Parser Options
  40. The following options can be used to influence the output of
  41. the changelog parser, e.g. the range of entries or the format
  42. of the output. They need to be supported by the parser script
  43. in question. See also \fBCAVEATS\fP.
  44. .TP
  45. .BI \-\-format " outputformat"
  46. Set the output format. Currently supported values are
  47. .IR dpkg " and " rfc822 .
  48. \fIdpkg\fP is the classic output format (from before this
  49. option existed) and the default. It consists of one paragraph
  50. in Debian control format (see \fBdeb-control\fP(5)). If more
  51. than one entry is requested, then most fields are taken from the
  52. latest entry, except otherwise stated:
  53. .RS
  54. .TP
  55. .BR Source: " <pkg name>"
  56. .TP
  57. .BR Version: " <version>"
  58. .TP
  59. .BR Distribution: " <target distribution>"
  60. .TP
  61. .BR Urgency: " <urgency>"
  62. The highest urgency of all included entries is used.
  63. .TP
  64. .BR Maintainer: " <author>"
  65. .TP
  66. .BR Date: " <date>"
  67. .TP
  68. .BR Closes: " <bug number>"
  69. The Closes fields of all included entries are merged.
  70. .TP
  71. .BR Changes: " <changelog entries>"
  72. The text of all changelog entries is concatenated. To make
  73. this field a valid Debian control format multiline field
  74. empty lines are replaced with a single full stop and all lines
  75. is intended by one space character. The exact content depends
  76. on the changelog format.
  77. .RE
  78. .IP
  79. There might be additional user-defined fields present.
  80. .IP
  81. The \fBrfc822\fP format uses the same fields but outputs
  82. a separate paragraph for each changelog entry so that all
  83. metadata for each entry is preserved.
  84. .TP
  85. .BR \-\-since ", " \-s ", " \-v " \fIversion\fP"
  86. include all changes later than \fIversion\fP.
  87. .TP
  88. .BR \-\-until ", " \-u " \fIversion\fP"
  89. include all changes earlier than \fIversion\fP.
  90. .TP
  91. .BR \-\-from ", " \-f " \fIversion\fP"
  92. include all changes equal or later than \fIversion\fP.
  93. .TP
  94. .BR \-\-to ", " \-t " \fIversion\fP"
  95. include all changes up to or equal than \fIversion\fP.
  96. .TP
  97. .BR \-\-count ", " \-c ", " \-n " \fInumber\fI"
  98. include \fInumber\fP entries from the top (or the tail
  99. if \fInumber\fP is lower than 0).
  100. .TP
  101. .BR \-\-offset ", " \-o " \fInumber\fP"
  102. change the starting point for \-\-count, counted from the top
  103. (or the tail if \fInumber\fP is lower than 0).
  104. .TP
  105. .B \-\-all
  106. include all changes.
  107. .
  108. .SH CAVEATS
  109. All \fBParser Options\fP except for \-v are only supported in
  110. \fBdpkg\fP, version 1.14.16 and later. Third party parsers for
  111. changelog formats other than \fIdebian\fP might not support
  112. all options.
  113. .
  114. .SH FILES
  115. .TP
  116. .B debian/changelog
  117. The changelog file, used to obtain version-dependent information about
  118. the source package, such as the urgency and distribution of an upload,
  119. the changes made since a particular release, and the source version
  120. number itself.
  121. .
  122. .SH AUTHORS
  123. Copyright (C) 1995-1996 Ian Jackson
  124. .br
  125. Copyright (C) 2000 Wichert Akkerman
  126. .br
  127. Copyright (C) 2007, 2008 Frank Lichtenheld
  128. .sp
  129. This is free software; see the GNU General Public Licence version 2 or later
  130. for copying conditions. There is NO WARRANTY.