Win32 support: Switch DEBUG off and corrected warning bug.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Chris Nighswonger 2007-12-18 14:16:27 -05:00 committed by Galen Charlton
parent 7fcfc09669
commit 42c9423408
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ use ExtUtils::MakeMaker::Config;
use Tie::File;
my $basedir = (shift);
my $DEBUG = 1;
my $DEBUG = 0;
$DEBUG = 1 if $basedir eq 'test';
@ -72,7 +72,7 @@ sub fixshebang{
my $pathfile =$dir . '/' . $file;
warn "Found a perl script named $pathfile\n" if $DEBUG;
tie @filearray, 'Tie::File', $pathfile or die $!;
print "First line of $file is $filearray[0]\n\n";
warn "First line of $file is $filearray[0]\n\n" if $DEBUG;
if ( ( $filearray[0] =~ /#!.*perl/ ) && ( $filearray[0] !~ /$shebang/ ) ) {
warn "\n\tRe-writing shebang line for $pathfile\n" if $DEBUG;
warn "\tOriginal shebang line: $filearray[0]\n" if $DEBUG;