summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-10 21:50:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-10 21:50:05 +0300
commit84432de6088e2f929585ba425c0e02b728969f0e (patch)
tree10ee4835f0dc1c23e9475bd2ed9ea9694a6aa33e /tools
parent108e929d2c9ba2794accc75bcea4fccfd3ef1735 (diff)
more accurate version that eats the trailing slash
Diffstat (limited to 'tools')
-rw-r--r--tools/build_scripts/a_SetVar32.bat1
-rw-r--r--tools/build_scripts/a_SetVar64.bat1
2 files changed, 2 insertions, 0 deletions
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