summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/build_scripts/a_SetVar32.bat6
-rw-r--r--tools/build_scripts/a_SetVar64.bat6
2 files changed, 8 insertions, 4 deletions
diff --git a/tools/build_scripts/a_SetVar32.bat b/tools/build_scripts/a_SetVar32.bat
index e57c6bd9a6..727b0f2555 100644
--- a/tools/build_scripts/a_SetVar32.bat
+++ b/tools/build_scripts/a_SetVar32.bat
@@ -1,5 +1,7 @@
-set Drive=C:
-set SourceDir=%Drive%\Sources\miranda_NG_compilation
+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"
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 c925711968..f14a4ea481 100644
--- a/tools/build_scripts/a_SetVar64.bat
+++ b/tools/build_scripts/a_SetVar64.bat
@@ -1,5 +1,7 @@
-set Drive=C:
-set SourceDir=%Drive%\Sources\miranda_NG_compilation
+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"
set DropDir=%Drive%\Dropbox
set StableInstDir=%SourceDir%\tools\installer_ng_stable
set GetIt=%StableInstDir%\Tools\wget.exe