Changeset 639

Show
Ignore:
Timestamp:
06/02/07 04:40:12 (2 years ago)
Author:
DominoTree
Message:

GO AWAY WINDOWS LINEBREAKS!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/build/ispcp-mkdirs.pl

    r631 r639  
    11#!/usr/bin/perl 
     2 
    23use strict; 
     4 
    35use warnings; 
     6 
    47if (scalar(@ARGV) != 1) { 
     8 
    59    print STDERR "\nispcp-mkdirs.pl command line argument error !\n\n"; 
     10 
    611    exit 1; 
     12 
    713} 
     14 
    815my $dir_path = $ARGV[0]; 
     16 
    917$dir_path .= "\n"; 
     18 
    1019my $current_dir = ''; 
     20 
    1121while ($dir_path =~ /(\/[^\/\n]+)/g) { 
     22 
    1223    $current_dir .= $1; 
     24 
    1325    if (! -e $current_dir) { 
     26 
    1427        mkdir($current_dir); 
     28 
    1529        print "Creating Directory [$current_dir] ...\n"; 
     30 
    1631    } 
     32 
    1733}