From 471c09e4d21be85bda2b456a95947fcdf2f64d3d Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 9 Feb 2006 03:05:38 +0000 Subject: [PATCH] - Use the first configure command given in a diff, even if it has no args. - Output the build commands being run. --- verify-patches | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/verify-patches b/verify-patches index 8a83cea..59f4ff5 100755 --- a/verify-patches +++ b/verify-patches @@ -83,8 +83,8 @@ foreach my $diff (@ARGV) { } sleep(1) if $prepare_source; # Ensure later diffs get later times. } - if (!defined($conf_opts) && m#^\s*\./configure( .+)#) { - $conf_opts = $1; + if (!defined($conf_opts) && s#^\s+\./configure\s+##) { + chomp($conf_opts = $_); $conf_opts =~ s/\s+\(.*?\)//; } } @@ -142,7 +142,9 @@ foreach my $diff (@ARGV) { } if ($cmd eq 'B') { chdir('workdir') or die $!; - system "./prepare-source && ./configure $CONF_OPTS $conf_opts && make"; + my $cmd = "./prepare-source && ./configure $CONF_OPTS $conf_opts && make"; + print "Running: $cmd\n"; + system $cmd; chdir('..') or die $!; $default = '!make test'; next; -- 2.34.1