From: Ian Jackson Date: Fri, 4 Nov 2016 18:54:48 +0000 (+0000) Subject: ts-xen-build: Support passing arguments to configure X-Git-Tag: openstack-v11~193 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5ed111ca724cac0e4c091584657d1027e4f7f700;p=people%2Faperard%2Fosstest.git ts-xen-build: Support passing arguments to configure No functional change with existing callers. Signed-off-by: Ian Jackson --- diff --git a/ts-xen-build b/ts-xen-build index 7cdd3658..4f1f71a6 100755 --- a/ts-xen-build +++ b/ts-xen-build @@ -37,7 +37,15 @@ while (@ARGV && $ARGV[0] =~ m/^-/) { die "$_ ?"; } } + +my ($dashdashdash) = grep { $ARGV[$_] eq '---' } 0..$#ARGV; +my (@configure_args, @make_args); +$dashdashdash //= -1; +@configure_args = @ARGV[0..$dashdashdash-1]; +@make_args = @ARGV[$dashdashdash+1..$#ARGV]; + # remaining arguments are passed as targets to "make" +# if there is a ---, those before that are arguments to "configure" builddirsprops(); @@ -132,7 +140,7 @@ sub build () { ovmf=$ovmf_opt fi END - $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf $configure_suffix + $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf $configure_suffix @configure_args END fi END @@ -145,7 +153,7 @@ END END buildcmd_stamped_logged(9000, 'xen', 'build', '',<