Allow MSVC .bat wrappers to be called from anywhere
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 7 Jan 2022 21:07:45 +0000 (16:07 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 7 Jan 2022 21:07:45 +0000 (16:07 -0500)
commitc3879a7b4c87344d804483234a7278a68e8248d9
tree7b9dfeee09163bec5f45871b45a57da9c53ae32a
parent825d95e8a8b266110d3d7eaa38a8f4abcf146a1a
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
src/tools/msvc/build.bat
src/tools/msvc/install.bat
src/tools/msvc/pgbison.bat
src/tools/msvc/pgflex.bat
src/tools/msvc/vcregress.bat