diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2015-04-25 08:52:03 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2015-04-25 08:58:01 -0400 |
commit | 854adb83711da8fda2a8f028c27ad8956179c04a (patch) | |
tree | 092d50f6289120a5cac1b9315732087851ebfa8a /src/tools/msvc/MSBuildProject.pm | |
parent | 410cbfd6dd778e8f388fd0d7ee9d84f833700da5 (diff) | |
download | postgresql-854adb83711da8fda2a8f028c27ad8956179c04a.tar.gz postgresql-854adb83711da8fda2a8f028c27ad8956179c04a.zip |
Replace backslashes by forward slashes in MSVC build code
This makes it possible to run some stages of these build scripts on
non-Windows systems. That way, we can more easily test whether file
moves or makefile changes might break the MSVC build.
Peter Eisentraut and Michael Paquier
Diffstat (limited to 'src/tools/msvc/MSBuildProject.pm')
-rw-r--r-- | src/tools/msvc/MSBuildProject.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm index 37958f95b55..a16f9acefca 100644 --- a/src/tools/msvc/MSBuildProject.pm +++ b/src/tools/msvc/MSBuildProject.pm @@ -127,7 +127,7 @@ EOF foreach my $fileNameWithPath (sort keys %{ $self->{files} }) { confess "Bad format filename '$fileNameWithPath'\n" - unless ($fileNameWithPath =~ /^(.*)\\([^\\]+)\.(c|cpp|y|l|rc)$/); + unless ($fileNameWithPath =~ m!^(.*)/([^/]+)\.(c|cpp|y|l|rc)$!); my $dir = $1; my $fileName = $2; if ($fileNameWithPath =~ /\.y$/ or $fileNameWithPath =~ /\.l$/) |