From: Frank Lichtenheld Date: Thu, 6 Dec 2007 02:26:49 +0000 (+0100) Subject: Import parsechangelog script from Parse::DebianChangelog X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b0dc09dc1e51d4a862f9e0d5bf247fd7e0cd2c3;p=dpkg Import parsechangelog script from Parse::DebianChangelog Replaces changelog/debian.pl --- diff --git a/scripts/changelog/debian.pl b/scripts/changelog/debian.pl index 2760c147..08225c64 100755 --- a/scripts/changelog/debian.pl +++ b/scripts/changelog/debian.pl @@ -3,35 +3,24 @@ use strict; use warnings; +use Getopt::Long qw(:config gnu_getopt auto_help); +use POSIX; + use Dpkg; use Dpkg::Gettext; -use Dpkg::ErrorHandling qw(error internerr usageerr); -use Dpkg::Fields qw(set_field_importance); - -push(@INC,$dpkglibdir); -require 'controllib.pl'; - -our %f; +use Dpkg::ErrorHandling qw(usageerr failure); +use Dpkg::Changelog::Debian; textdomain("dpkg-dev"); -my $controlfile = 'debian/control'; -my $changelogfile = 'debian/changelog'; -my $fileslistfile = 'debian/files'; -my $since = ''; -my %mapkv = (); # XXX: for future use - -my @changelog_fields = qw(Source Version Distribution Urgency Maintainer - Date Closes Changes); - $progname = "parsechangelog/$progname"; - sub version { printf _g("Debian %s version %s.\n"), $progname, $version; printf _g(" -Copyright (C) 1996 Ian Jackson."); +Copyright (C) 1996 Ian Jackson. +Copyright (C) 2005,2007 Frank Lichtenheld."); printf _g(" This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is NO warranty. @@ -40,152 +29,93 @@ later for copying conditions. There is NO warranty. sub usage { printf _g( -"Usage: %s [