Win32 support: Stripped ^M line endings and various other housekeeping.
authorChris Nighswonger <cnighswonger@foundations.edu>
Tue, 18 Dec 2007 18:59:10 +0000 (13:59 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Tue, 18 Dec 2007 20:31:51 +0000 (14:31 -0600)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
fix-perl-path.PL

index 222ff8d..dbe7403 100644 (file)
@@ -1,4 +1,4 @@
-#!c:\strawberry-perl\perl\bin\perl
+#!/usr/bin/perl
 # This file is part of Koha.
 #
 # Koha is free software; you can redistribute it and/or modify it under the
@@ -25,7 +25,7 @@ my $DEBUG = 1;
 $DEBUG = 1 if $basedir eq 'test';
 
 my $bindir = $Config{installbin};
-$bindir =~ s!\\!/!g;   # make all directory separators uniform...
+$bindir =~ s!\\!/!g;   # make all directory separators uniform since Win32 does not care and *nix does...
 my $shebang = "#!$bindir\/perl -w";
 
 warn "Perl binary located in $bindir on this system.\n" if $DEBUG;
@@ -60,7 +60,6 @@ in a manner similar to 'fixshebang (foodir)' but may be supplied with any direct
 =cut
 
 sub fixshebang{
-       # NOTE: this might be dressed up a bit with File::Spec since we're using it here already.
        my $dir = shift;
     opendir my $dh, $dir or die $!;
        warn "Reading $dir contents.\n" if $DEBUG;
@@ -106,4 +105,3 @@ sub fixshebang{
 
 fixshebang ($basedir);
 
-