Clean up convenience functions
This commit is contained in:
parent
d6025a1db7
commit
d69a047172
9
dbg
9
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}
|
||||
docker-compose -f toolchain/docker-compose.yml run \
|
||||
--rm \
|
||||
run ${cmd}
|
17
emu
17
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}
|
||||
docker-compose -f toolchain/docker-compose.yml run \
|
||||
--rm \
|
||||
--name emul \
|
||||
run ${cmd}
|
Loading…
x
Reference in New Issue
Block a user