]> 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:04 +0000 (16:14 -0500)
commita7772e8748a7783776f0095e0d7068bcf42e3d69
tree50dbaebb71f7968a49844bb192082a07945b27c5
parentf285d95839e05608ee99dba399abe860d3c026c5
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