mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 23:50:40 +00:00
23 lines
464 B
Batchfile
23 lines
464 B
Batchfile
:: Build (and eventually install) r2 for windows
|
|
@echo off
|
|
ninja --version > NUL 2> NUL
|
|
if %ERRORLEVEL% == 0 (
|
|
if EXIST b (
|
|
ninja -C b
|
|
|
|
if %ERRORLEVEL% == 0 (
|
|
echo Installing r2 in %CD%\prefix
|
|
set DESTDIR=%CD%\prefix
|
|
ninja -C b install > NUL
|
|
copy /y %DESTDIR%\bin\radare2.exe %DESTDIR%\bin\r2.exe
|
|
) else (
|
|
exit /b 1
|
|
)
|
|
) else (
|
|
echo Please run configure before make
|
|
exit /b 1
|
|
)
|
|
) else (
|
|
echo Please run preconfigure
|
|
exit /b 1
|
|
) |