mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-09 14:52:28 -04:00
Windows build environment:
- Added build script - Added build-installer script - Added pack script - Added gitlog script - Use shadow build
This commit is contained in:
parent
ebfc82cc1e
commit
a35985e3fc
60 changed files with 1357 additions and 444 deletions
42
build_scripts/Windows/tools/get-gcc-version.bat
Normal file
42
build_scripts/Windows/tools/get-gcc-version.bat
Normal file
|
@ -0,0 +1,42 @@
|
|||
:: Usage:
|
||||
:: call get-gcc-version.bat variable
|
||||
|
||||
setlocal
|
||||
|
||||
set Var=%~1
|
||||
if "%Var%"=="" (
|
||||
echo.
|
||||
echo Parameter error.
|
||||
exit /B 1
|
||||
)
|
||||
|
||||
set GCCVersion=
|
||||
|
||||
call "%~dp0find-in-path.bat" GCCPath gcc.exe
|
||||
if "%GCCPath%"=="" (
|
||||
echo.
|
||||
echo Cannot find gcc.exe in PATH.
|
||||
goto exit
|
||||
)
|
||||
|
||||
gcc --version >"%~dp0gccversion.tmp"
|
||||
for /F "tokens=1*" %%A in (%~sdp0gccversion.tmp) do (
|
||||
if "%%A"=="gcc" (
|
||||
call :find_version %%B
|
||||
goto exit
|
||||
)
|
||||
)
|
||||
|
||||
:exit
|
||||
if exist "%~dp0gccversion.tmp" del /Q "%~dp0gccversion.tmp"
|
||||
|
||||
endlocal & set %Var%=%GCCVersion%
|
||||
goto :EOF
|
||||
|
||||
:find_version
|
||||
:loop
|
||||
if "%2" NEQ "" (
|
||||
shift
|
||||
goto loop
|
||||
)
|
||||
set GCCVersion=%1
|
Loading…
Add table
Add a link
Reference in a new issue