On Tuesday, April 2, 2002, at 02:56 AM, Dave Rolsky wrote:

> On Mon, 1 Apr 2002, Michael G Schwern wrote:
>> Setting $ENV{MASON_VERBOSE} off TEST_VERBOSE, OTOH, is tricky.  How
>> does one do it in Module::Build?
>
>   sub ACTION_test
>   {
>     my $self = shift;
>
>     $ENV{APACHE_DIR}    = $self->{args}{apache_dir};
>     $ENV{PORT}          = $self->{args}{port};
>     $ENV{MASON_VERBOSE} = $self->{args}{mason_verbose};
>
>     $self->SUPER::ACTION_test;
>   }
>
> Except that doesn't quite work yet cause Ken hasn't created a good way 
> to
> set mason_verbose, though it could just be:
>
>   perl Build.PL --mason-verbose=1


Oh yes I have. =)

     perl Build.PL mason_verbose=1
   or
     Build test mason_verbose=1

Either would do the trick.  I think my 0.05_01 may have broken proper 
argument processing, but it's definitely fixed in the forthcoming 0.06.

By the way, I'm trying to plan an interface for overriding arbitrary 
%Config values on the command line.  I think I like the following:

   perl Build.PL config-cc=/usr/bin/gcc config-gzip=/my/private/gzip

An alternative which I don't think I like as much is:

   perl Build.PL config='cc=/usr/bin/gcc gzip=/my/private/gzip'

The reason I don't like it is that it's going to be a quoting nightmare 
if any of the values need to contain spaces or quotes.

In 0.06 I've gotten %Config separated from user args, and I'm much 
happier about it.

  -Ken

Reply via email to