forked from pool/pesign-obs-integration
- brp-99-compress-vmlinux: Compress the vmlinux image after find-debuginfo (bnc#880848, bnc#884459) OBS-URL: https://build.opensuse.org/request/show/245477 OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign-obs-integration?expand=0&rev=35
24 lines
337 B
Perl
24 lines
337 B
Perl
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use Getopt::Long;
|
|
|
|
my $USAGE = "Usage: $0 [-r <build root>] <file>\n";
|
|
|
|
my $buildroot = "";
|
|
GetOptions("r|root=s" => \$buildroot) or die $USAGE;
|
|
if (scalar(@ARGV) != 1) {
|
|
die $USAGE;
|
|
}
|
|
if ($buildroot) {
|
|
$buildroot .= "/";
|
|
}
|
|
|
|
my $fn = shift @ARGV;
|
|
|
|
system("fipshmac $buildroot$fn");
|
|
|
|
exit 0;
|