From 84432de6088e2f929585ba425c0e02b728969f0e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Aug 2017 21:50:05 +0300 Subject: more accurate version that eats the trailing slash --- tools/build_scripts/a_SetVar32.bat | 1 + tools/build_scripts/a_SetVar64.bat | 1 + 2 files changed, 2 insertions(+) (limited to 'tools/build_scripts') diff --git a/tools/build_scripts/a_SetVar32.bat b/tools/build_scripts/a_SetVar32.bat index 727b0f2555..d8df1de7da 100644 --- a/tools/build_scripts/a_SetVar32.bat +++ b/tools/build_scripts/a_SetVar32.bat @@ -2,6 +2,7 @@ set Drive=%~d0 set SourceDir=%~dp0 for %%a in (%SourceDir:~0,-1%) do set "SourceDir=%%~dpa" for %%a in (%SourceDir:~0,-1%) do set "SourceDir=%%~dpa" +for %%a in (%SourceDir:~0,-1%) do set "SourceDir=%%a" set DropDir=%Drive%\Dropbox set StableInstDir=%SourceDir%\tools\installer_ng_stable set GetIt=%StableInstDir%\Tools\wget.exe diff --git a/tools/build_scripts/a_SetVar64.bat b/tools/build_scripts/a_SetVar64.bat index f14a4ea481..68a05ee193 100644 --- a/tools/build_scripts/a_SetVar64.bat +++ b/tools/build_scripts/a_SetVar64.bat @@ -2,6 +2,7 @@ set Drive=%~d0 set SourceDir=%~dp0 for %%a in (%SourceDir:~0,-1%) do set "SourceDir=%%~dpa" for %%a in (%SourceDir:~0,-1%) do set "SourceDir=%%~dpa" +for %%a in (%SourceDir:~0,-1%) do set "SourceDir=%%a" set DropDir=%Drive%\Dropbox set StableInstDir=%SourceDir%\tools\installer_ng_stable set GetIt=%StableInstDir%\Tools\wget.exe -- cgit v1.2.3