#!/usr/bin/perl # # dpkg-repack puts humpty-dumpty back together again. # # Copyright © 1996-2006 Joey Hess # Copyright © 2012, 2014-2021 Guillem Jover # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . use strict; use warnings; use File::stat; use File::Temp; use List::Util qw(any none); use Dpkg::ErrorHandling; use Dpkg::Path qw(find_command); use Dpkg::IPC; use Dpkg::Control; use Dpkg::Control::Fields; use Getopt::Long qw(:config posix_default bundling_values no_ignore_case); my $VERSION = '1.50'; my $rootdir; my $arch; my @deb_options; my $generate; my $tags = ''; my %tag = ( description => 1, version => 0, ); sub Syntax { print { *STDERR } <<'USAGE'; Usage: dpkg-repack [