#!/usr/bin/perl use strict; use warnings; use POSIX; use POSIX qw(:errno_h); use Dpkg; use Dpkg::Gettext; use Dpkg::ErrorHandling; use Dpkg::Arch qw(get_host_arch debarch_eq debarch_is); use Dpkg::Deps qw(@pkg_dep_fields %dep_field_type); use Dpkg::Fields qw(:list unknown); use Dpkg::Control; use Dpkg::Control::Info; use Dpkg::Substvars; use Dpkg::Vars; use Dpkg::Changelog qw(parse_changelog); textdomain("dpkg-dev"); my @control_fields = (qw(Package Package-Type Source Version Kernel-Version Architecture Subarchitecture Installer-Menu-Item Essential Origin Bugs Maintainer Installed-Size), @pkg_dep_fields, qw(Section Priority Multi-Arch 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 $oppackage; my $substvars = Dpkg::Substvars->new(); 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 [