Don't redirect in if stmt.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -10s

This commit is contained in:
Willem Cazander 2024-07-01 00:57:03 +02:00
parent 125e59d5f0
commit 1b8e8b8590
2 changed files with 7 additions and 5 deletions

View file

@ -21,7 +21,7 @@ $(MAKE_ON_MSX_BIN)/build.bat: $(MAKE_ON_MSX_SRC)/build.bat | $(MAKE_ON_MSX_BIN)/
BUILD_HELP += \\n\\t* $(MAKE_ON_MSX_BIN)/nfbsshot.bin BUILD_HELP += \\n\\t* $(MAKE_ON_MSX_BIN)/nfbsshot.bin
$(MAKE_ON_MSX_BIN)/nfbsshot.bin: | $(MAKE_ON_MSX_BIN)/build.bat $(MAKE_ON_MSX_BIN)/nfbsshot.bin: | $(MAKE_ON_MSX_BIN)/build.bat
$(call mb_autoexec_safe_cmd,$(MAKE_ON_MSX_BIN),build exit) $(call mb_autoexec_safe_cmd,$(MAKE_ON_MSX_BIN),build shutdown)
$(call mb_openmsx_dosctl,$(MAKE_ON_MSX_BIN)) $(call mb_openmsx_dosctl,$(MAKE_ON_MSX_BIN))
BUILD_HELP += \\n\\t* $(MAKE_ON_MSX_BIN)/@assert BUILD_HELP += \\n\\t* $(MAKE_ON_MSX_BIN)/@assert

View file

@ -13,14 +13,16 @@ dir/w utils
copy /T NFBSSHOT.BAK NFBSSHOT.MAC copy /T NFBSSHOT.BAK NFBSSHOT.MAC
echo === Running make echo === Running make
omsxctl fail_after 300 seconds failed_make 1 omsxctl fail_after 300 seconds failed_make 1
echo "dir" > build1.bat
make NFBSSHOT.MF /x > build2.bat make NFBSSHOT.MF /x > build2.bat
echo === Concat shutdown echo === Concat shutdown
echo "dir" > build1.bat
echo "dir" > build3.bat echo "dir" > build3.bat
echo "" > build4.bat IFF "shutdown" == %1
IFF "exit" == %1 SET lastcmd=shutdown
echo "shutdown" > build4.bat ELSE
SET lastcmd=omsxctl fail_after 0
ENDIFF ENDIFF
echo %lastcmd% > build4.bat
concat build1.bat + build2.bat + build3.bat + build4.bat buildrun.bat concat build1.bat + build2.bat + build3.bat + build4.bat buildrun.bat
echo === Final script echo === Final script
type buildrun.bat type buildrun.bat