X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FFatNode.pm;h=598366c1c0d79fd8d3664e62b7e84d6cabe77a86;hb=refs%2Fheads%2Fwin32;hp=1b7c659c21e5f991b959c828d812c47c14021524;hpb=783105c4013747147c7195f043961af40b9908b7;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index 1b7c659..598366c 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -18,7 +18,8 @@ my %maybe_libs = map +($_ => 1), grep defined, (values %Config, '.'); my @extra_libs = grep not(ref($_) or $maybe_libs{$_}), @INC; -my $extra_libs = join '', map " -I$_\n", @extra_libs; +my $extra_libs = join '', map qq[ -I"$_"\n], @extra_libs; +my $perl_quote = $^O eq "MSWin32" ? q["] : q[']; my $command = qq( $^X @@ -35,7 +36,7 @@ my $command = qq( -mMethod::Generate::BuildAll -mMethod::Generate::DemolishAll -mJSON::PP - -e 'print join "\\n", \%INC' + -e $perl_quote print join qq[\\n], \%INC $perl_quote ); $command =~ s/\n/ /g;