From d40551bc34f642f9211c1da8eb6d7128148ae6c3 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Fri, 2 Jul 2004 00:53:36 +0000 Subject: [PATCH] Bug 249459 make-jars.pl should use CYGDRIVE_MOUNT patch by sdwalker@myrealbox.com r=cls --- config/make-jars.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/make-jars.pl b/config/make-jars.pl index c756be135aa..d60b64482a7 100644 --- a/config/make-jars.pl +++ b/config/make-jars.pl @@ -4,7 +4,14 @@ my $cygwin_mountprefix = ""; if ($^O eq "cygwin") { - $cygwin_mountprefix = `mount -p | awk '{ if (/^\\//) { print \$1; exit } }'`; + $cygwin_mountprefix = $ENV{CYGDRIVE_MOUNT}; + if ($cygwin_mountprefix eq "") { + $cygwin_mountprefix = `mount -p | awk '{ if (/^\\//) { print \$1; exit } }'`; + if ($cygwin_mountprefix eq "") { + print "Cannot determine cygwin mount points. Exiting.\n"; + exit(1); + } + } chomp($cygwin_mountprefix); # Remove extra ^M caused by using dos-mode line-endings chop $cygwin_mountprefix if (substr($cygwin_mountprefix, -1, 1) eq "\r");