mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2024-11-09 17:50:30 +01:00
Build scripts bugfixes
This commit is contained in:
parent
133c1f6e02
commit
311e2d94a8
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set Source=%1
|
set Source=%1
|
||||||
|
|
||||||
if "%Source%"=="" (
|
if #%Source%#==## (
|
||||||
echo Usage: %~n0 [source-file]
|
echo Usage: %~n0 [source-file]
|
||||||
goto exit
|
goto exit
|
||||||
)
|
)
|
||||||
@ -21,11 +21,11 @@ if not exist "%~dp0..\RTL\SysInit.dcu" call "%~dp0..\build-RTL.bat"
|
|||||||
if errorlevel 1 goto exit
|
if errorlevel 1 goto exit
|
||||||
|
|
||||||
if not exist "%Bin%\convert.bat" (
|
if not exist "%Bin%\convert.bat" (
|
||||||
echo @%%~dp0..\Tools\convert.bat %%* >"%Bin%\convert.bat"
|
echo @call "%%~dp0..\Tools\convert.bat" %%* >"%Bin%\convert.bat"
|
||||||
if errorlevel 1 goto exit
|
if errorlevel 1 goto exit
|
||||||
)
|
)
|
||||||
|
|
||||||
dcc32 "%Source%.dpr" -e"%Bin%" -n"%DCU%" -u"%Units%" %Options%
|
dcc32 %Source%.dpr -e"%Bin%" -n"%DCU%" -u"%Units%" %Options%
|
||||||
if errorlevel 1 goto exit
|
if errorlevel 1 goto exit
|
||||||
|
|
||||||
call "%~dp0convert.bat" "%Target%.exe"
|
call "%~dp0convert.bat" "%Target%.exe"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
if "%1"=="" (
|
if #%1#==## (
|
||||||
echo Usage: %~n0 [source-file.exe [pet-options]]
|
echo Usage: %~n0 [source-file.exe [pet-options]]
|
||||||
goto exit
|
goto exit
|
||||||
)
|
)
|
||||||
@ -8,9 +8,9 @@ if "%1"=="" (
|
|||||||
"%~dp0..\Pet" -nologo -strip -trunc -dropsect .idata,.rsrc -rebase 0 -osver 0.7 -log brief -into %*
|
"%~dp0..\Pet" -nologo -strip -trunc -dropsect .idata,.rsrc -rebase 0 -osver 0.7 -log brief -into %*
|
||||||
if errorlevel 1 goto exit
|
if errorlevel 1 goto exit
|
||||||
|
|
||||||
"%~dp0..\exe2kos" "%1"
|
"%~dp0..\exe2kos" %1
|
||||||
if errorlevel 1 goto exit
|
if errorlevel 1 goto exit
|
||||||
|
|
||||||
%~dp0..\kpack "%~dp1%~n1"
|
"%~dp0..\kpack" "%~dp1%~n1"
|
||||||
|
|
||||||
:exit
|
:exit
|
@ -1 +1 @@
|
|||||||
@dcc32 -m -y -z %~dp0RTL\System -n%~dp0\RTL %*
|
@dcc32 -m -y -z "%~dp0RTL\System" -n"%~dp0\RTL" %*
|
@ -1,3 +1,3 @@
|
|||||||
@echo off
|
@echo off
|
||||||
call build-examples.bat
|
call "%~dp0build-examples.bat"
|
||||||
call build-my.bat
|
call "%~dp0build-my.bat"
|
@ -1,12 +1,12 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
for /d %%f in (%~dp0Examples\Console\*) do (
|
for /d %%f in ("%~dp0Examples\Console\*") do (
|
||||||
call %%f\build.bat
|
if exist "%%f\build.bat" call "%%f\build.bat"
|
||||||
if errorlevel 1 goto exit
|
if errorlevel 1 goto exit
|
||||||
)
|
)
|
||||||
|
|
||||||
for /d %%f in (%~dp0Examples\GUI\*) do (
|
for /d %%f in ("%~dp0Examples\GUI\*") do (
|
||||||
call %%f\build.bat
|
if exist "%%f\build.bat" call "%%f\build.bat"
|
||||||
if errorlevel 1 goto exit
|
if errorlevel 1 goto exit
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
for /d %%f in (%~dp0My\*) do (
|
for /d %%f in ("%~dp0My\*") do (
|
||||||
call %%f\build.bat
|
if exist "%%f\build.bat" call "%%f\build.bat"
|
||||||
if errorlevel 1 goto exit
|
if errorlevel 1 goto exit
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user