buildsys: abi-generate: add usage output

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-05-25 13:20:12 +02:00
parent aaf2ebd5eb
commit a4ed09777b

View File

@ -4,9 +4,13 @@ use PVE::Tools;
use IO::File;
my $input_file = shift;
my $output_file = shift;
my $abi = shift;
sub usage {
die "USAGE: $0 INFILE OUTFILE ABI [INFILE-IS-DEB]\n";
}
my $input_file = shift // usage();
my $output_file = shift // usage();
my $abi = shift // usage();
my $extract_deb = shift;
die "input file '$input_file' does not exist\n" if ! -e $input_file;