RetroShare/build_scripts/Windows/tools/msys-path.bat
thunder2 a35985e3fc Windows build environment:
- Added build script
- Added build-installer script
- Added pack script
- Added gitlog script
- Use shadow build
2016-10-04 09:24:48 +02:00

21 lines
293 B
Batchfile

:: Usage:
:: call msys-path.bat path variable
setlocal
set WinPath=%~1
set MSYSVar=%~2
if "%MSYSVar%"=="" (
echo.
echo Parameter error.
exit /B 1
)
set MSYSPath=/%WinPath:~0,1%/%WinPath:~3%
set MSYSPath=%MSYSPath:\=/%
endlocal & set %MSYSVar%=%MSYSPath%
exit /B 0