From: Frank Lichtenheld Date: Sun, 13 Jan 2008 12:25:16 +0000 (+0100) Subject: dpkg-parsechangelog(1): Document the new parser options X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ab947df77388732f7a7b30cd07e8065c1a71c34;p=dpkg dpkg-parsechangelog(1): Document the new parser options --- diff --git a/man/ChangeLog b/man/ChangeLog index 92cfa0b9..9e292196 100644 --- a/man/ChangeLog +++ b/man/ChangeLog @@ -1,3 +1,8 @@ +2008-01-13 Frank Lichtenheld + + * dpkg-parsechangelog.1: Document the new + command line options. + 2008-01-12 Raphael Hertzog * dpkg-shlibdeps.1: Fix a typo reported by Helge Kreutzmann. diff --git a/man/dpkg-parsechangelog.1 b/man/dpkg-parsechangelog.1 index 0367dcc1..ab5cb6e2 100644 --- a/man/dpkg-parsechangelog.1 +++ b/man/dpkg-parsechangelog.1 @@ -1,4 +1,4 @@ -.TH dpkg\-parsechangelog 1 "2007-03-07" "Debian Project" "dpkg utilities" +.TH dpkg\-parsechangelog 1 "2008-01-13" "Debian Project" "dpkg utilities" .SH NAME dpkg\-parsechangelog \- parse Debian changelog files . @@ -25,17 +25,91 @@ from a special line near the bottom of the changelog or failing that defaults to the debian standard format. .TP .BI \-L libdir -FIXME not used in the source!? -.TP -.BI \-v version -Use changelog information from all versions strictly later than -.IR version . +Specify an additional directory to search for parser scripts. +This directory is searched before the default directories +which are currently +.BR /usr/local/lib/dpkg/parsechangelog " and " +.BR /usr/lib/dpkg/parsechangelog . .TP .BR \-h ", " \-\-help Show the usage message and exit. .TP .BR \-\-version Show the version and exit. +.SS Parser Options +The following options can be used to influence the output of +the changelog parser, e.g. the range of entries or the format +of the output. They need to supported by the parser script +in question. See also \fBCAVEATS\fP. +.TP +.BI \-\-format " outputformat" +Set the output format. Currently supported values are +.IR dpkg " and " rfc822 . +\fIdpkg\fP is the classic output format (from before this +option existed) and the default. It consists of one paragraph +in Debian control format (see \fBdeb-control\fP(5)). If more +than one entry is requested, most fields are taken from the +latest entry, except otherwise stated: +.RS +.TP +.BR Source: " " +.TP +.BR Version: " " +.TP +.BR Distribution: " " +.TP +.BR Urgency: " " +The highest urgency of all included entries is used. +.TP +.BR Maintainer: " " +.TP +.BR Date: " " +.TP +.BR Closes: " " +The Closes fields of all included entries are merged. +.TP +.BR Changes: " " +The text of all changelog entries is concatenated. To make +this field a valid Debian control format multiline field +empty lines are replaced with a single full stop and all lines +is intended by one space character. The exact content depends +on the changelog format. +.RE +.IP +There might be additional user-defined fields present. +.IP +The \fBrfc822\fP format uses the same fields but outputs +a separate paragraph for each changelog entry so that all +metadata for each entry is preserved. +.TP +.BR \-\-since ", " \-s ", " \-v " \fIversion\fP" +include all changes later than \fIversion\fP. +.TP +.BR \-\-until ", " \-u " \fIversion\fP" +include all changes earlier than \fIversion\fP. +.TP +.BR \-\-from ", " \-f " \fIversion\fP" +include all changes equal or later than \fIversion\fP. +.TP +.BR \-\-to ", " \-t " \fIversion\fP" +include all changes up to or equal than \fIversion\fP. +.TP +.BR \-\-count ", " \-c ", " \-n " \fInumber\fI" +include \fInumber\fP entries from the top (or the tail +if \fInumber\fP is lower than 0). +.TP +.BR \-\-offset ", " \-o " \fInumber\fP" +change the starting point for \-\-count, counted from the top +(or the tail if \fInumber\fP is lower than 0). +.TP +.B \-\-all +include all changes. +. +.SH CAVEATS +All \fBParser Options\fP except for \-v are only supported in +\fBdpkg\fP, version 1.14.16 and later. Third party parsers for +changelog formats other than \fIdebian\fP might not support +all options. . .SH FILES .TP @@ -49,6 +123,8 @@ number itself. Copyright (C) 1995-1996 Ian Jackson .br Copyright (C) 2000 Wichert Akkerman +.br +Copyright (C) 2007, 2008 Frank Lichtenheld .sp This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is NO WARRANTY.