From 2e41db1933021bb53484c17f095845f0bfefdf68 Mon Sep 17 00:00:00 2001 From: Jeff Hostetler Date: Wed, 25 Jul 2018 09:31:55 -0400 Subject: [PATCH] find_vs_env.bat: Fix bin dir path used by msys Completely convert the pathname expoted in the %msvc_bin_dir_msys% variable to MSYS format with forward slashes rather than a mixture of forward and back slashes. This solves an obscure problem observed by some developers: [...] http-push.c CC remote-curl.o remote-curl.c * new script parameters GEN git-instaweb sed: -e expression #7, char 155: invalid reference \2 on `s' command's RHS make: *** [Makefile:2023: git-instaweb] Error 1 Signed-off-by: Jeff Hostetler --- compat/vcbuild/find_vs_env.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compat/vcbuild/find_vs_env.bat b/compat/vcbuild/find_vs_env.bat index 4223ad962cb76c..1232f200f7dcd7 100644 --- a/compat/vcbuild/find_vs_env.bat +++ b/compat/vcbuild/find_vs_env.bat @@ -154,7 +154,9 @@ REM ================================================================ REM Include DOS-style and BASH-style path for bin dir. echo msvc_bin_dir=%msvc_bin_dir% - echo msvc_bin_dir_msys=%msvc_bin_dir:C:=/C% + SET X1=%msvc_bin_dir:C:=/C% + SET X2=%X1:\=/% + echo msvc_bin_dir_msys=%X2% echo msvc_includes=%msvc_includes% echo msvc_libs=%msvc_libs%