Build scripts bugfixes

This commit is contained in:
Владислав Джавадов 2020-06-28 22:07:46 +03:00
parent 133c1f6e02
commit 311e2d94a8
6 changed files with 15 additions and 15 deletions

View File

@ -2,7 +2,7 @@
set Source=%1
if "%Source%"=="" (
if #%Source%#==## (
echo Usage: %~n0 [source-file]
goto exit
)
@ -21,11 +21,11 @@ if not exist "%~dp0..\RTL\SysInit.dcu" call "%~dp0..\build-RTL.bat"
if errorlevel 1 goto exit
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
)
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
call "%~dp0convert.bat" "%Target%.exe"

View File

@ -1,6 +1,6 @@
@echo off
if "%1"=="" (
if #%1#==## (
echo Usage: %~n0 [source-file.exe [pet-options]]
goto exit
)
@ -8,9 +8,9 @@ if "%1"=="" (
"%~dp0..\Pet" -nologo -strip -trunc -dropsect .idata,.rsrc -rebase 0 -osver 0.7 -log brief -into %*
if errorlevel 1 goto exit
"%~dp0..\exe2kos" "%1"
"%~dp0..\exe2kos" %1
if errorlevel 1 goto exit
%~dp0..\kpack "%~dp1%~n1"
"%~dp0..\kpack" "%~dp1%~n1"
:exit

View File

@ -1 +1 @@
@dcc32 -m -y -z %~dp0RTL\System -n%~dp0\RTL %*
@dcc32 -m -y -z "%~dp0RTL\System" -n"%~dp0\RTL" %*

View File

@ -1,3 +1,3 @@
@echo off
call build-examples.bat
call build-my.bat
call "%~dp0build-examples.bat"
call "%~dp0build-my.bat"

View File

@ -1,12 +1,12 @@
@echo off
for /d %%f in (%~dp0Examples\Console\*) do (
call %%f\build.bat
for /d %%f in ("%~dp0Examples\Console\*") do (
if exist "%%f\build.bat" call "%%f\build.bat"
if errorlevel 1 goto exit
)
for /d %%f in (%~dp0Examples\GUI\*) do (
call %%f\build.bat
for /d %%f in ("%~dp0Examples\GUI\*") do (
if exist "%%f\build.bat" call "%%f\build.bat"
if errorlevel 1 goto exit
)

View File

@ -1,7 +1,7 @@
@echo off
for /d %%f in (%~dp0My\*) do (
call %%f\build.bat
for /d %%f in ("%~dp0My\*") do (
if exist "%%f\build.bat" call "%%f\build.bat"
if errorlevel 1 goto exit
)