Improved build commands

This commit is contained in:
2022-01-02 20:19:53 +01:00
parent e0979ed357
commit 271ab8860f
8 changed files with 54 additions and 29 deletions

11
emu
View File

@@ -1,3 +1,12 @@
#!/usr/bin/env bash
docker-compose -f toolchain/docker-compose.yml run --rm --name emul emul "$@"
default="qemu-system-x86_64 -s -S -cdrom /opt/mittos.iso -curses"
if [[ "$1" == "-" ]]; then
shift
cmd="$@"
else
cmd="${default} $@"
fi
docker-compose -f toolchain/docker-compose.yml run --rm --name emul -u $(id -u):$(id -g) run ${cmd}