]> git.proxmox.com Git - pve-kernel.git/commitdiff
buildsys: abi-generate: add usage output
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 May 2018 11:20:12 +0000 (13:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 May 2018 11:20:12 +0000 (13:20 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/scripts/abi-generate

index 44704fb598ebd1fc6c3341bb15d143578c7d400e..a4df443ba643e2871987a965ce44f3d42a100bda 100755 (executable)
@@ -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;