Fix MSVC installations with multiple "configure" files detected
authorMichael Paquier
Thu, 21 May 2020 05:41:33 +0000 (14:41 +0900)
committerMichael Paquier
Thu, 21 May 2020 05:41:33 +0000 (14:41 +0900)
commitbb24af50d515651b950e153fdd25ddb46184a57b
tree2e93443bd0da49f34a944e7a301b1accf31521a5
parent673582d21f30871d9b5d04449e6b2b7acde69209
Fix MSVC installations with multiple "configure" files detected

When installing binaries and libraries using the MSVC installation
routines, the operation gets done after moving to the root folder, whose
location is detected by checking if "configure" exists two times in a
row.  So, calling the installation script from src/tools/msvc/ with an
extra "configure" file four levels up the root path of the code tree
causes the execution to go further up, leading to a failure in finding
the builds.  This commit fixes the issue by moving to the root folder of
the code tree only once, when necessary.

Author: Arnold Müller
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/16343-f638f67e7e52b86c@postgresql.org
Backpatch-through: 9.5
src/tools/msvc/Install.pm