diff --git a/dbg b/dbg index da82134..5b14088 100755 --- a/dbg +++ b/dbg @@ -1,6 +1,9 @@ #!/usr/bin/env bash -default="gdb -q -x /opt/toolchain/gdbinit" +default="gdb \ + -q \ + -x /opt/toolchain/gdbinit\ + " if [[ "$1" == "-" ]]; then shift @@ -9,4 +12,6 @@ else cmd="${default} $@" fi -docker-compose -f toolchain/docker-compose.yml run --rm -u $(id -u):$(id -g) run ${cmd} \ No newline at end of file +docker-compose -f toolchain/docker-compose.yml run \ + --rm \ + run ${cmd} \ No newline at end of file diff --git a/emu b/emu index 1e97d85..d8a04f6 100755 --- a/emu +++ b/emu @@ -1,6 +1,16 @@ #!/usr/bin/env bash -default="qemu-system-x86_64 -s -S -cdrom /opt/mittos.iso -curses" +default="qemu-system-x86_64 \ + -s -S \ + -drive file=/opt/mittos.iso,media=cdrom,cache=none \ + -curses \ + " + +if [[ "$1" == "nocompile" ]]; then + shift +else + make dist +fi if [[ "$1" == "-" ]]; then shift @@ -9,4 +19,7 @@ else cmd="${default} $@" fi -docker-compose -f toolchain/docker-compose.yml run --rm --name emul -u $(id -u):$(id -g) run ${cmd} \ No newline at end of file +docker-compose -f toolchain/docker-compose.yml run \ + --rm \ + --name emul \ + run ${cmd} \ No newline at end of file diff --git a/make b/make index 9eb521a..2a9bdef 100755 --- a/make +++ b/make @@ -9,4 +9,7 @@ else cmd="${default} $@" fi -docker-compose -f toolchain/docker-compose.yml run --rm -u $(id -u):$(id -g) build ${cmd} \ No newline at end of file +docker-compose -f toolchain/docker-compose.yml run \ + --rm \ + -u $(id -u):$(id -g) \ + build ${cmd} \ No newline at end of file