mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
pgindent run for 9.5
This commit is contained in:
@@ -92,11 +92,14 @@ sub CreateProject
|
||||
|
||||
sub DetermineVisualStudioVersion
|
||||
{
|
||||
|
||||
# To determine version of Visual Studio we use nmake as it has
|
||||
# existed for a long time and still exists in current Visual
|
||||
# Studio versions.
|
||||
my $output = `nmake /? 2>&1`;
|
||||
$? >> 8 == 0 or croak "Unable to determine Visual Studio version: The nmake command wasn't found.";
|
||||
$? >> 8 == 0
|
||||
or croak
|
||||
"Unable to determine Visual Studio version: The nmake command wasn't found.";
|
||||
if ($output =~ /(\d+)\.(\d+)\.\d+(\.\d+)?$/m)
|
||||
{
|
||||
return _GetVisualStudioVersion($1, $2);
|
||||
|
||||
Reference in New Issue
Block a user