diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-10 21:45:32 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-10 21:45:32 +0300 |
commit | 108e929d2c9ba2794accc75bcea4fccfd3ef1735 (patch) | |
tree | 828216e655d5a62cc98a7000be396679102c25bb /tools | |
parent | efe28c27399799be8197f3e065e99326448a6022 (diff) |
build files to use relative path instead of drive C:
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build_scripts/a_SetVar32.bat | 6 | ||||
-rw-r--r-- | tools/build_scripts/a_SetVar64.bat | 6 |
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 |