local $Params::Check::VERBOSE = 1;
-$VERSION = '0.35_01';
+$VERSION = '0.35_02';
=pod
my $env = ENV_CPANPLUS_IS_EXECUTING;
local $ENV{$env} = BUILD_PL->( $dir );
my $run_perl = $conf->get_program('perlwrapper');
+ my $cmd;
+ if ( ON_VMS ) {
+ $cmd = [$perl, BUILD_PL->($dir), @buildflags]
+ }
+ else {
+ $cmd = [$perl, $run_perl, BUILD_PL->($dir), @buildflags]
+ }
- unless ( scalar run( command => [$perl, $run_perl, BUILD_PL->($dir), @buildflags],
+ unless ( scalar run( command => $cmd,
buffer => \$prep_output,
verbose => $verbose )
) {
my $content;
- if ( version->new( $Module::Build::VERSION ) >= $safe_ver and ! ON_WIN32 ) {
+ if ( version->new( $Module::Build::VERSION ) >= $safe_ver and ! ON_WIN32 and ! ON_VMS ) {
my @buildflags = $dist->_buildflags_as_list( $buildflags );
# Use the new Build action 'prereq_data'
my $run_perl = $conf->get_program('perlwrapper');
- my $flag = ON_VMS ? '"prereq_data"' : 'prereq_data';
- unless ( scalar run( command => [$perl, $run_perl, BUILD->($dir), $flag, @buildflags],
+ unless ( scalar run( command => [$perl, $run_perl, BUILD->($dir), 'prereq_data', @buildflags],
buffer => \$content,
verbose => 0 )
) {
last RUN;
}
- my $captured;
+ my ($captured, $cmd);
+ if ( ON_VMS ) {
+ $cmd = [$perl, BUILD->($dir), @buildflags];
+ }
+ else {
+ $cmd = [$perl, $run_perl, BUILD->($dir), @buildflags];
+ }
- unless ( scalar run( command => [$perl, $run_perl, BUILD->($dir), @buildflags],
+ unless ( scalar run( command => $cmd,
buffer => \$captured,
verbose => $verbose )
) {
### against 0.2607 on 26/1/2005
unless( $skiptest ) {
my $test_output;
- my $flag = ON_VMS ? '"test"' : 'test';
- my $cmd = [$perl, $run_perl, BUILD->($dir), $flag, @buildflags];
+ if ( ON_VMS ) {
+ $cmd = [$perl, BUILD->($dir), "test", @buildflags];
+ }
+ else {
+ $cmd = [$perl, $run_perl, BUILD->($dir), "test", @buildflags];
+ }
unless ( scalar run( command => $cmd,
buffer => \$test_output,
verbose => $verbose )
### don't worry about loading the right version of M::B anymore
### the 'new_from_context' already added the 'right' path to
### M::B at the top of the build.pl
- ### On VMS, flags need to be quoted
- my $flag = ON_VMS ? '"install"' : 'install';
- my $cmd = [$perl, $run_perl, BUILD->($dir), $flag, @buildflags];
+ my $cmd;
+ if ( ON_VMS ) {
+ $cmd = [$perl, BUILD->($dir), "install", @buildflags];
+ }
+ else {
+ $cmd = [$perl, $run_perl, BUILD->($dir), "install", @buildflags];
+ }
my $sudo = $conf->get_program('sudo');
unshift @$cmd, $sudo if $sudo;
$fail++;
}
} else {
- my $install_output;
- my $flag = ON_VMS ? '"install"' : 'install';
- my $cmd = [$perl, $run_perl, BUILD->($dir), $flag, @buildflags];
+ my ($install_output, $cmd);
+ if ( ON_VMS ) {
+ $cmd = [$perl, BUILD->($dir), "install", @buildflags];
+ }
+ else {
+ $cmd = [$perl, $run_perl, BUILD->($dir), "install", @buildflags];
+ }
unless( scalar run( command => $cmd,
buffer => \$install_output,
verbose => $verbose )