Allow MSVC .bat wrappers to be called from anywhere
authorAndrew Dunstan <[email protected]>
Fri, 7 Jan 2022 21:07:45 +0000 (16:07 -0500)
committerAndrew Dunstan <[email protected]>
Fri, 7 Jan 2022 21:14:40 +0000 (16:14 -0500)
commitd897361c7567ada5d11e3ee40e29a947264e3ecf
tree29fe4eecff53649086cb182d6dc225f6da52776d
parente5b044c84e8a8c0a3bfca66a245b08316532110c
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