ejudge.sh: pack image.bin inside the script.

This commit is contained in:
Alexander Myltsev 2023-01-15 18:30:57 +04:00
parent 6984aab0af
commit 160525abde

View File

@ -18,7 +18,11 @@ run-nox: image.bin
qemu-system-i386 -nographic -drive format=raw,file=$< -serial mon:stdio qemu-system-i386 -nographic -drive format=raw,file=$< -serial mon:stdio
ejudge.sh: image.bin ejudge.sh: image.bin
echo >$@ "#!/bin/sh\nexec qemu-system-i386 -nographic -drive format=raw,file=$< -serial mon:stdio" echo >$@ "#!/bin/sh"
echo >>$@ "base64 -d <<===EOF | gunzip >image.bin"
gzip <$^ | base64 >>$@
echo >>$@ "===EOF"
echo >>$@ "exec qemu-system-i386 -nographic -drive format=raw,file=image.bin -serial mon:stdio"
chmod +x $@ chmod +x $@
debug-boot-nox: image.bin mbr.elf debug-boot-nox: image.bin mbr.elf