Changeset 19583 for util

Show
Ignore:
Timestamp:
01/19/08 03:23:22 (10 months ago)
Author:
lwall
Message:

[fudgeall] depugsify and delinuxify

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/fudgeall

    r19582 r19583  
    55 
    66my $platform = shift; 
     7@ARGV = <@ARGV> if $^O eq 'MSWin32'; 
    78 
    89use Cwd; 
    9 my $dir = getcwd; 
     10my $top = getcwd; 
    1011 
    11 my $SPEC = $dir =~ /\bspec\b/; 
    12 while (not -f "$dir/util/fudge") { 
    13     die "Not inside pugs directory\n" unless $dir; 
    14     $dir =~ s!(.*)/(.*)!!; 
     12while (not -f "$top/util/fudge") { 
     13    die "Not inside appropriate directory\n" unless $top; 
     14    $top =~ s!(.*)/(.*)!!; 
    1515} 
    1616 
    1717print join(' ', 
    1818    map { 
    19         if ($SPEC or m!\bspec\b!) { 
    20             chomp(my $pick = `$dir/util/fudge $platform $_`); 
    21             $pick; 
    22         } 
    23         else { 
    24             $_; 
    25         } 
     19        chomp(my $pick = `$top/util/fudge $platform $_`); 
     20        $pick; 
    2621    } @ARGV 
    2722), "\n";