@ECHO OFF
rem ------------------------------------------------------------------------
rem  In next line you must define which version you want to build.
rem  Set the rigth number in -DIDAxx parameter.
rem  -DIDA51 - IDA 4.04   (...\OBJ51\...)
rem  -DIDA52 - IDA 4.10   (...\OBJ52\...)
rem  -DIDA53 - IDA 4.14   (...\OBJ53\...)
rem  -DIDA54 - IDA 4.15   (...\OBJ54\...)
rem  -DIDA55 - IDA 4.16   (...\OBJ55\...)

make -D__NT__ -U__MSDOS__ -DIDA51 -DDEBUG   >errors.txt


rem ------------------------------------------------------------------------
rem  In next line you can copy builded plugIn to IDA plugIns dir if you want.
rem  1st Erase 'REM' word in front of 'copy...' line.
rem  2nd Define the rigth number in 'OBJ\OBJ51\...' dir.
rem  3rd Define the path to IDA plugIns directory.

REM  copy OBJ\OBJ51\i2s.plw c:\programiranje\reversing\IDA\plugIns\i2s.plw /V /Y


rem ------------------------------------------------------------------------
rem  In next line you can convert current debug symbols.
rem  1st Erase 'REM' word in front of 'loader32...' line.
rem  2nd Define the rigth number in 'OBJ\OBJ54\...' dir.

REM loader32 OBJ\OBJ51\i2s.tds /TRANSLATE

rem ------------------------------------------------------------------------
rem  Well unfortunately windows doesn't wait for previus line to finish so
rem  you'll have to load i2s.nms separately with n.bat file.

exit