diff options
author | Bruce Momjian <bruce@momjian.us> | 2012-07-04 21:47:48 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2012-07-04 21:47:48 -0400 |
commit | 2bc09ff4994fbeecef9601b8654f3f94b55bc81a (patch) | |
tree | 909899084593f8d689c70547dfc5d3cb9cea76f5 /src/tools/msvc/VSObjectFactory.pm | |
parent | 9c6f8be2b14c170b589fdbd48e3db42c45efb2cc (diff) |
Run newly-configured perltidy script on Perl files.
Run on HEAD and 9.2.
Diffstat (limited to 'src/tools/msvc/VSObjectFactory.pm')
-rw-r--r-- | src/tools/msvc/VSObjectFactory.pm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/msvc/VSObjectFactory.pm b/src/tools/msvc/VSObjectFactory.pm index e222b04c681..c3aa33ec24f 100644 --- a/src/tools/msvc/VSObjectFactory.pm +++ b/src/tools/msvc/VSObjectFactory.pm @@ -17,7 +17,7 @@ use VCBuildProject; use MSBuildProject; our (@ISA, @EXPORT); -@ISA = qw(Exporter); +@ISA = qw(Exporter); @EXPORT = qw(CreateSolution CreateProject DetermineVisualStudioVersion); sub CreateSolution @@ -81,12 +81,12 @@ sub DetermineVisualStudioVersion if (!defined($nmakeVersion)) { - # Determine version of nmake command, to set proper version of visual studio - # we use nmake as it has existed for a long time and still exists in visual studio 2010 - open(P,"nmake /? 2>&1 |") +# Determine version of nmake command, to set proper version of visual studio +# we use nmake as it has existed for a long time and still exists in visual studio 2010 + open(P, "nmake /? 2>&1 |") || croak - "Unable to determine Visual Studio version: The nmake command wasn't found."; - while(<P>) +"Unable to determine Visual Studio version: The nmake command wasn't found."; + while (<P>) { chomp; if (/(\d+)\.(\d+)\.\d+(\.\d+)?$/) @@ -96,17 +96,17 @@ sub DetermineVisualStudioVersion } close(P); } - elsif($nmakeVersion =~ /(\d+)\.(\d+)\.\d+(\.\d+)?$/) + elsif ($nmakeVersion =~ /(\d+)\.(\d+)\.\d+(\.\d+)?$/) { return _GetVisualStudioVersion($1, $2); } croak - "Unable to determine Visual Studio version: The nmake version could not be determined."; +"Unable to determine Visual Studio version: The nmake version could not be determined."; } sub _GetVisualStudioVersion { - my($major, $minor) = @_; + my ($major, $minor) = @_; if ($major > 10) { carp |