echoto.bat: correct batch file for all parameters blank

This commit is contained in:
Jiri Malak 2024-07-14 22:24:38 +02:00 committed by Kenneth J Davis
parent a5b516dd7b
commit c0009ebaaf
2 changed files with 4 additions and 2 deletions

View File

@ -34,8 +34,6 @@ production: ../bin/$(TARGET).sys
$(CP) kernel.sys ..$(DIRSEP)bin$(DIRSEP)$(TARGET).sys $(CP) kernel.sys ..$(DIRSEP)bin$(DIRSEP)$(TARGET).sys
$(CP) kernel.map ..$(DIRSEP)bin$(DIRSEP)$(TARGET).map $(CP) kernel.map ..$(DIRSEP)bin$(DIRSEP)$(TARGET).map
# -S to avoid showing expected relocations
# 0x10 & 0x78 or 0x79 depending on compilation options
kernel.sys: kernel.exe ../utils/exeflat.exe ../utils/upxentry.bin ../utils/upxdevic.bin exeflat.rsp kernel.sys: kernel.exe ../utils/exeflat.exe ../utils/upxentry.bin ../utils/upxdevic.bin exeflat.rsp
..$(DIRSEP)utils$(DIRSEP)exeflat.exe kernel.exe kernel.sys $(LOADSEG) @exeflat.rsp ..$(DIRSEP)utils$(DIRSEP)exeflat.exe kernel.exe kernel.sys $(LOADSEG) @exeflat.rsp
@ -51,6 +49,8 @@ clean:
# XXX: This is a very ugly way of linking the kernel, forced upon us by the # XXX: This is a very ugly way of linking the kernel, forced upon us by the
# inability of Turbo `make' 2.0 to perform command line redirection. -- ror4 # inability of Turbo `make' 2.0 to perform command line redirection. -- ror4
# -S to avoid showing expected relocations
# 0x10 & 0x78 or 0x79 depending on compilation options
exeflat.rsp: makefile exeflat.rsp: makefile
-$(RM) exeflat.rsp -$(RM) exeflat.rsp
$(ECHOTO) exeflat.rsp -S0x10 $(ECHOTO) exeflat.rsp -S0x10

View File

@ -1,2 +1,4 @@
@echo off @echo off
if "%2%3%4%5%6%7%8%9" == "" goto nothing
echo %2 %3 %4 %5 %6 %7 %8 %9 >>%1 echo %2 %3 %4 %5 %6 %7 %8 %9 >>%1
:nothing