#!/usr/bin/perl use strict; use warnings; use POSIX; use POSIX qw(:errno_h :signal_h); use Dpkg; use Dpkg::Gettext; push(@INC,$dpkglibdir); require 'controllib.pl'; our (%f, %fi); our %p2i; our %substvar; our $sourcepackage; textdomain("dpkg-dev"); my @changes_fields = qw(Format Date Source Binary Architecture Version Distribution Urgency Maintainer Changed-By Description Closes Changes Files); my $controlfile = 'debian/control'; my $changelogfile = 'debian/changelog'; my $changelogformat; my $fileslistfile = 'debian/files'; my $varlistfile = 'debian/substvars'; my $uploadfilesdir = '..'; my $sourcestyle = 'i'; my $quiet = 0; my %f2p; # - file to package map my %p2f; # - package to file map, has entries for both "packagename" # and "packagename architecture" my %p2ver; # - package to version map my %p2arch; my %f2sec; # - file to section map my %f2seccf; my %f2pri; # - file to priority map my %f2pricf; my %sourcedefault; # - default values as taken from source (used for Section, # Priority and Maintainer) my @descriptions; my @sourcefiles; my @fileslistfiles; my %md5sum; # - md5sum to file map my %remove; # - fields to remove my %override; my %archadded; my @archvalues; my $dsc; my $changesdescription; my $sourceonly; my $binaryonly; my $archspecific; my $forcemaint; my $forcechangedby; my $since; sub version { printf _g("Debian %s version %s.\n"), $progname, $version; printf _g(" Copyright (C) 1996 Ian Jackson. Copyright (C) 2000,2001 Wichert Akkerman."); printf _g(" This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is NO warranty. "); } sub usage { printf _g( "Usage: %s [