bafb2d78f4
git-svn-id: svn://kolibrios.org@666 a494cfbc-eb01-0410-851d-a64ba20cac60
22 lines
361 B
Batchfile
22 lines
361 B
Batchfile
@echo off
|
|
|
|
set NAME=%1
|
|
set NAMEEXE=%NAME%.exe
|
|
set NAMEKEX=%NAME%.kex
|
|
|
|
set BUILD=-FUbuild
|
|
set UNTS=-Fu..\units
|
|
|
|
fpc %NAME%.pp -n -Twin32 -Se5 -XXs -Sg -O3pPENTIUM3 -CfSSE -WB0 %BUILD% %UNTS%
|
|
if errorlevel 1 goto error
|
|
|
|
..\exe2kos\exe2kos.exe %NAMEEXE% %NAMEKEX%
|
|
del %NAMEEXE%
|
|
move %NAMEKEX% bin
|
|
goto end
|
|
|
|
:error
|
|
echo An error occured while building %NAME%
|
|
|
|
:end
|