]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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:14:23 +0000 (16:14 -0500)
commita4cde9153b6efd9f1649daaa5d0caf8d3807e64d
tree29f33f45efc20280f02871ac17aa612b9b79eac4
parentccc7c3ad86b67cd85805824d40782fa5b92b1fc5
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