]> 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:32 +0000 (16:14 -0500)
commitc7fa0f55deb17960de97285595e4a5342f0136c1
tree014973ec8d15aa182a20a4e7a986c45321715b74
parent2ce113a4f085e078286a921d4cbe63b0dc34794e
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