Move trunc-ctrl-z.py invocation and cp runcpm.log into run-in-runcpm.py

This commit is contained in:
Philip Zembrod 2023-07-02 16:43:54 +02:00
parent c188248df4
commit e9c2c942ef
2 changed files with 7 additions and 7 deletions

View File

@ -16,6 +16,8 @@ clean:
rm -rf $(runcpmdir)
rm -f msdos
test: logtest.result inctest.log
run-editor: | msdos
FORTHPATH="f:\\src;f:\\tests;f:\\msdos" \
../../8086/msdos/emulator/run-in-dosbox.sh f:\\msdos\\volks4th.com
@ -44,9 +46,6 @@ inctest.log: \
"logclose" \
"bye" \
"exit"
cp $(runcpmdir)/output.log output.log
../../tools/trunc-ctrl-z.py $(runcpmdir)/A/0/LOGFILE.TXT \
$(runcpmdir)/logfile.txt
dos2unix -n $(runcpmdir)/logfile.txt $@
logtest.log: \
@ -61,9 +60,6 @@ logtest.log: \
"logclose" \
"bye" \
"exit"
cp $(runcpmdir)/output.log output.log
../../tools/trunc-ctrl-z.py $(runcpmdir)/A/0/LOGFILE.TXT \
$(runcpmdir)/logfile.txt
dos2unix -n $(runcpmdir)/logfile.txt $@
emu: $(runcpmdir)/RunCPM

View File

@ -9,7 +9,7 @@ runcpmdir="${basedir}/runcpm"
runcpm_a0="${runcpmdir}/A/0"
toolsdir="${basedir}/../../tools"
logfile="${runcpmdir}/output.log"
logfile="${runcpmdir}/runcpm.log"
scriptfile="${runcpmdir}/input.script"
rm -f "${logfile}"
rm -f "${scriptfile}"
@ -34,3 +34,7 @@ if [[ -f "${scriptfile}" ]]; then
else
"${runcpmdir}/RunCPM" -o "${logfile}"
fi
cp "${logfile}" runcpm.log
"${toolsdir}/trunc-ctrl-z.py" "${runcpmdir}/A/0/LOGFILE.TXT" \
"${runcpmdir}/logfile.txt"