From d18a80820a22ab6af41df35468ee09aebd1933e1 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 18 Dec 2007 14:53:47 -0600 Subject: [PATCH] installer: adjusted conditional for setting exported variables Now checks for win32, and assumes (for now) a default for all other platforms. --- Makefile.PL | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 7dec2763e9..114bf3f93f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1168,19 +1168,19 @@ sub postamble { $config{'ZEBRA_PASS'} =~ s/\$/\$\$/g; # Hereagain, we must alter syntax per platform... - if ( $^O =~ /linux|cygwin/ ) { - my $env = join("\n", map { "export __${_}__ := $target_directories->{$_}" } keys %$target_directories); - $env .= "\n\n"; - $env .= join("\n", map { "export __${_}__ := $config{$_}" } keys %config); - return "$env\n"; - } - elsif ( $^O eq 'MSWin32' ) { + if ( $^O eq 'MSWin32' ) { # NOTE: it is imperative that there be no whitespaces in ENV=value... my $env = join("\n", map { "__${_}__=$target_directories->{$_}" } keys %$target_directories); $env .= "\n\n"; $env .= join("\n", map { "__${_}__=$config{$_}" } keys %config); return "$env\n"; } + else { + my $env = join("\n", map { "export __${_}__ := $target_directories->{$_}" } keys %$target_directories); + $env .= "\n\n"; + $env .= join("\n", map { "export __${_}__ := $config{$_}" } keys %config); + return "$env\n"; + } } -- 2.39.5