diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-20 01:31:41 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-21 15:16:15 +0300 |
commit | 4ca6eb91c2faf550f251863429f333bfdbd89fec (patch) | |
tree | 055fa1cb7f1b4abe96e0a8d79908a0c8916dedab /build-msvc.bat | |
parent | 8e6b798c8ca1f9125e2a0cb8eb3aed918bffa21d (diff) |
Convert relative installation directory path to absolute in build scripts
Diffstat (limited to 'build-msvc.bat')
-rw-r--r-- | build-msvc.bat | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build-msvc.bat b/build-msvc.bat index 2f0ed6b..e9416a3 100644 --- a/build-msvc.bat +++ b/build-msvc.bat @@ -8,7 +8,8 @@ goto start :usage echo. -echo Usage: %0 [/?] [^<options^>] [^<cl-compiler^>] +rem echo Usage: %0 [/?] [^<options^>] [^<cl-compiler^>] +echo Usage: %0 [/?] [^<options^>] echo Options: echo --local Don't build from packages, only from local source. echo --install-dir ^<dir^> Alternative installation directory. @@ -140,6 +141,10 @@ rem ) else ( rem set "cxx=%1" rem ) +rem Convert a relative path to an absolute. +rem +for /F "delims=|" %%D in ("%idir%") do set "idir=%%~dpnxD" + rem Certificate to trust. rem if not "_%trust%_" == "__" ( |