Skip to content
Snippets Groups Projects
Commit 019e6122 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

David Byron's fix that makes this script use 'cygpath' instead of 'pwd' if

this runs on windows, to find out the current working directory.
parent 6550d271
No related branches found
No related tags found
No related merge requests found
......@@ -452,6 +452,22 @@ sub checkcurl {
$curl =~ s/^(.*)(libcurl.*)/$1/g;
$libcurl = $2;
if ($curl =~ /win32/)
{
# Native Windows builds don't understand the
# output of cygwin's pwd. It will be
# something like /cygdrive/c/<some path>.
#
# Use the cygpath utility to convert the
# working directory to a Windows friendly
# path. The -m option converts to use drive
# letter:, but it uses / instead \. Forward
# slashes (/) are easier for us. We don't
# have to escape them to get them to curl
# through a shell.
chomp($pwd = `cygpath -m $pwd`);
}
}
elsif($_ =~ /^Protocols: (.*)/i) {
# these are the supported protocols, we don't use this knowledge
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment