mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
20 lines
307 B
Batchfile
20 lines
307 B
Batchfile
call :make_path SourcePath "%~dp0..\.."
|
|
call :make_path RootPath "%SourcePath%\.."
|
|
call :source_name SourceName "%SourcePath%"
|
|
set ToolsPath=%~dp0tools
|
|
set EnvPath=%~dp0env
|
|
|
|
exit /B 0
|
|
|
|
:make_path
|
|
setlocal
|
|
set Var=%~1
|
|
pushd %2
|
|
set CD=%cd%
|
|
popd
|
|
endlocal & set %Var%=%CD%
|
|
goto :EOF
|
|
|
|
:source_name
|
|
set %~1=%~nx2
|