#! /usr/bin/perl my $dpkglibdir = "."; my $version = "1.3.0"; # This line modified by Makefile my @filesinarchive; my %dirincluded; my %notfileobject; my $fn; $diff_ignore_default_regexp = ' # Ignore general backup files (?:^|/).*~$| # Ignore emacs recovery files (?:^|/)\.#.*$| # Ignore vi swap files (?:^|/)\..*\.swp$| # Ignore baz-style junk files or directories (?:^|/),,.*(?:$|/.*$)| # File-names that should be ignored (never directories) (?:^|/)(?:DEADJOE|\.cvsignore|\.arch-inventory|\.bzrignore)$| # File or directory names that should be ignored (?:^|/)(?:CVS|RCS|\.deps|\{arch\}|\.arch-ids|\.svn|_darcs|\.git|\.bzr(?:\.backup)?)(?:$|/.*$) '; # Take out comments and newlines $diff_ignore_default_regexp =~ s/^#.*$//mg; $diff_ignore_default_regexp =~ s/\n//sg; $sourcestyle = 'X'; $min_dscformat = 1; $max_dscformat = 2; $def_dscformat = "1.0"; # default format for -b use POSIX; use Fcntl qw (:mode); use File::Temp qw (tempfile); use Cwd; use strict 'refs'; push (@INC, $dpkglibdir); require 'controllib.pl'; require 'dpkg-gettext.pl'; textdomain("dpkg-dev"); # Make sure patch doesn't get any funny ideas delete $ENV{'POSIXLY_CORRECT'}; my @exit_handlers = (); sub exit_handler { &$_ foreach ( reverse @exit_handlers ); exit(127); } $SIG{'INT'} = \&exit_handler; $SIG{'HUP'} = \&exit_handler; $SIG{'QUIT'} = \&exit_handler; sub version { printf _g("Debian %s version %s.\n"), $progname, $version; printf _g(" Copyright (C) 1996 Ian Jackson and Klee Dienes."); 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 [