2014-04-27 07:52:13 +00:00
|
|
|
#!/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;
|
|
|
|
|
2014-08-13 09:59:54 +00:00
|
|
|
system("fipshmac $buildroot$fn");
|
|
|
|
|
2014-04-27 07:52:13 +00:00
|
|
|
exit 0;
|