Changeset 22922 for src

Show
Ignore:
Timestamp:
11/08/08 09:37:59 (2 months ago)
Author:
azawawi
Message:

[STD_syntax_highlight] check: working directory should end with src/perl6

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/perl6/spec_highlight

    r22920 r22922  
    99use File::Basename; 
    1010use File::Copy; 
     11use Cwd; 
    1112use POSIX qw(nice);  
    1213 
     
    2122 
    2223WARNING 
     24 
     25#sanity check: working directory should end with src/perl6 
     26my $cwd = getcwd(); 
     27unless($cwd =~ m{src/perl6$}) { 
     28    die "Please run $PROGRAM_NAME in src/perl6\n"; 
     29} 
    2330 
    2431#sanity check: make sure STD.pm is correctly built