Changeset 633 for script

Show
Ignore:
Timestamp:
03/13/05 07:10:16 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
1869
Message:

* add usage info and pathsep to pugscc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • script/pugscc

    r632 r633  
    11#!/usr/bin/perl 
    22 
     3use Cwd; 
     4use Config; 
    35use FindBin; 
    46use File::Copy; 
    57use File::Basename; 
     8 
     9if (!@ARGV) { 
     10    die "Usage: $0 [ source[.p6] | -e oneliner ]\n"; 
     11} 
    612 
    713if (!-e "src/Main.hs") { 
     
    1117    } 
    1218} 
     19 
     20$ENV{PATH} .= $Config{path_sep} . cwd() unless $^O eq 'MSWin32'; 
    1321 
    1422unlink "dump.ast";