Force the use of unix path separators by using File::Spec::Unix->canonpath instead of File::Spec->canonpath.

Thanks to Gervase Markham <gerv@mozilla.org> for the patch.
Bug #127072 r=cls a=asa
This commit is contained in:
seawood%netscape.com 2002-02-26 09:29:58 +00:00
parent 0df019b037
commit 234f0380a3

View File

@ -129,12 +129,12 @@ while (<JARFILE>)
# implying that the file is in the current directory.
if (!$1 || $1 eq "")
{
$chromefile = File::Spec->canonpath("$jarfilename/$_");
$chromefile = File::Spec::Unix->canonpath("$jarfilename/$_");
$_ =~ /.*\/(.*?)$/;
$cvsfile = File::Spec->canonpath($1);
$cvsfile = File::Spec::Unix->canonpath($1);
} else {
$chromefile = File::Spec->canonpath("$jarfilename/$chromefile");
$cvsfile = File::Spec->canonpath($cvsfile);
$chromefile = File::Spec::Unix->canonpath("$jarfilename/$chromefile");
$cvsfile = File::Spec::Unix->canonpath($cvsfile);
}
# Convert to platform-specific separator for the chrome version.