Changeset 1025 for script

Show
Ignore:
Timestamp:
03/22/05 21:07:11 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
2417
Message:

* win32 hates exec()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • script/pugscc

    r1024 r1025  
    5858    $out =~ s{\..*}{}; 
    5959} 
    60 $out .= ($^O eq 'MSWin32') ? ".exe" : ".out"; 
     60 
     61if ($backend eq 'Parrot') { 
     62    $out .= ".pir"; 
     63} 
     64else { 
     65    $out .= ($^O eq 'MSWin32') ? ".exe" : ".out"; 
     66} 
    6167 
    6268unlink "dump.ast"; 
     
    97103if ($run) { 
    98104    if ($backend eq 'Parrot' and !-x '/usr/bin/env') { 
    99         exec parrot => $out; 
     105        system("parrot" => $out) == 0 or die $!; 
    100106    } 
    101107    else {