2024-06-30 23:35:04 +02:00
|
|
|
echo === Trigger workaround
|
2024-07-01 00:37:02 +02:00
|
|
|
rem Fixme make will not build without targets files
|
|
|
|
|
rem Fixme make will not build without updated time stamps
|
|
|
|
|
dir
|
2024-07-14 18:36:59 +02:00
|
|
|
copy /T build.bat HELLO.COM
|
2024-06-30 23:35:04 +02:00
|
|
|
dir/w utils
|
2024-07-14 18:36:59 +02:00
|
|
|
copy /T build.bat HELLO.HEX
|
2024-06-30 23:35:04 +02:00
|
|
|
dir/w utils
|
2024-07-14 18:36:59 +02:00
|
|
|
copy /T build.bat HELLO.REL
|
2024-06-30 23:35:04 +02:00
|
|
|
dir/w utils
|
2024-07-14 18:36:59 +02:00
|
|
|
copy /T HELLO.MAC HELLO.BAK
|
2024-06-30 23:35:04 +02:00
|
|
|
dir/w utils
|
2024-07-14 18:36:59 +02:00
|
|
|
copy /T HELLO.BAK HELLO.MAC
|
2024-06-30 23:35:04 +02:00
|
|
|
echo === Running make
|
2024-07-02 22:56:17 +02:00
|
|
|
omsxctl fail_after 300 seconds err_make 1
|
2024-07-14 18:36:59 +02:00
|
|
|
echo "echo --- build init" > build1.bat
|
|
|
|
|
make HELLO.MF /x > build2.bat
|
2024-06-30 23:35:04 +02:00
|
|
|
echo === Concat shutdown
|
2024-07-14 18:36:59 +02:00
|
|
|
echo "echo --- build shutdown" > build3.bat
|
2024-07-01 00:57:03 +02:00
|
|
|
IFF "shutdown" == %1
|
|
|
|
|
SET lastcmd=shutdown
|
|
|
|
|
ELSE
|
|
|
|
|
SET lastcmd=omsxctl fail_after 0
|
2024-06-30 23:35:04 +02:00
|
|
|
ENDIFF
|
2024-07-01 00:57:03 +02:00
|
|
|
echo %lastcmd% > build4.bat
|
2024-07-01 00:37:02 +02:00
|
|
|
concat build1.bat + build2.bat + build3.bat + build4.bat buildrun.bat
|
2024-06-30 23:35:04 +02:00
|
|
|
echo === Final script
|
2024-07-01 00:37:02 +02:00
|
|
|
type buildrun.bat
|
2024-06-30 23:35:04 +02:00
|
|
|
echo === Running build
|
2024-07-02 22:56:17 +02:00
|
|
|
omsxctl fail_after 300 seconds err_build 1
|
2024-07-01 00:37:02 +02:00
|
|
|
buildrun
|