Ticket #160: base.diff
File base.diff, 955 bytes (added by , 8 years ago) |
---|
-
\Base.pm
old new 3095 3095 3096 3096 my ($cmd, $arg) = (split(' ', $line, 2), ''); 3097 3097 next unless $cmd =~ /perl/i; 3098 my $interpreter = $self->{properties}{perl}; 3098 my $interpreter; 3099 if ($self->is_os2ish) { 3100 $interpreter = '/@unixroot/usr/bin/perl'; 3101 } else { 3102 $interpreter = $self->{properties}{perl}; 3103 } 3099 3104 3100 3105 $self->log_verbose("Changing sharpbang in $file to $interpreter\n"); 3101 3106 my $shb = ''; … … 3106 3111 $shb .= qq{ 3107 3112 eval 'exec $interpreter $arg -S \$0 \${1+"\$\@"}' 3108 3113 if 0; # not running under some shell 3109 } unless $self->is_windowsish ; # this won't work on win32, so don't3114 } unless $self->is_windowsish or $self->is_os2ish; # this won't work on win32, so don't 3110 3115 3111 3116 my $FIXOUT = IO::File->new(">$file.new") 3112 3117 or die "Can't create new $file: $!\n";