From 283ea0c4267d8fa802717965be140813f0899604 Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Tue, 21 Mar 2017 19:56:43 +0100 Subject: [PATCH] improving helper.pl --- helper.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/helper.pl b/helper.pl index 8088b0e..8eeb02a 100755 --- a/helper.pl +++ b/helper.pl @@ -257,7 +257,9 @@ sub process_makefiles { sub die_usage { die <<"MARKER"; usage: $0 --check-source + $0 --check-defines $0 --check-makefiles + $0 --check-all $0 --update-makefiles MARKER } @@ -265,14 +267,15 @@ MARKER GetOptions( "check-source" => \my $check_source, "check-defines" => \my $check_defines, "check-makefiles" => \my $check_makefiles, + "check-all" => \my $check_all, "update-makefiles" => \my $update_makefiles, "help" => \my $help ) or die_usage; my $failure; -$failure ||= check_source() if $check_source; -$failure ||= check_defines() if $check_defines; -$failure ||= process_makefiles(0) if $check_makefiles; +$failure ||= check_source() if $check_all || $check_source; +$failure ||= check_defines() if $check_all || $check_defines; +$failure ||= process_makefiles(0) if $check_all || $check_makefiles; $failure ||= process_makefiles(1) if $update_makefiles; die_usage unless defined $failure;