#!/usr/bin/perl use strict; use warnings; use POSIX; use POSIX qw(:errno_h); use Dpkg; use Dpkg::Gettext; push(@INC,$dpkglibdir); require 'controllib.pl'; our %substvar; our (%f, %fi); our %p2i; our @pkg_dep_fields; our $sourcepackage; textdomain("dpkg-dev"); my @control_fields = (qw(Package Source Version Architecture Essential Origin Bugs Maintainer Installed-Size), @pkg_dep_fields, qw(Section Priority Homepage Description Tag)); my $controlfile = 'debian/control'; my $changelogfile = 'debian/changelog'; my $changelogformat; my $fileslistfile = 'debian/files'; my $varlistfile = 'debian/substvars'; my $packagebuilddir = 'debian/tmp'; my $sourceversion; my $forceversion; my $forcefilename; my $stdout; my %remove; my %override; my (%spvalue, %spdefault); my $oppackage; sub version { printf _g("Debian %s version %s.\n"), $progname, $version; printf _g(" Copyright (C) 1996 Ian Jackson. Copyright (C) 2000,2002 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 [