Allow MSVC .bat wrappers to be called from anywhere

Andrew Dunstan <andrew@dunslane.net>

Commit: c3879a7b4c87344d804483234a7278a68e8248d9
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2022-01-07T21:07:45Z
Releases: 15.0
Allow MSVC .bat wrappers to be called from anywhere

Instead of using a hardcoded or default path to the perl file the .bat
file is a wrapper for, we use a path that means the file is found in
the same directory as the .bat file.

Patch by Anton Voloshin, slightly tweaked by me.

Backpatch to all live branches

Discussion: https://postgr.es/m/2b7a674b-5fb0-d264-75ef-ecc7a31e54f8@postgrespro.ru

Files

PathChange+/−
src/tools/msvc/build.bat modified +1 −1
src/tools/msvc/install.bat modified +1 −1
src/tools/msvc/pgbison.bat modified +1 −1
src/tools/msvc/pgflex.bat modified +1 −1
src/tools/msvc/vcregress.bat modified +1 −1

Discussion