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
dbg
View File

@@ -1,3 +1,12 @@
#!/usr/bin/env bash
docker-compose -f toolchain/docker-compose.yml run --rm dbg "$@"
default="gdb -q -x /opt/toolchain/gdbinit"
if [[ "$1" == "-" ]]; then
shift
cmd="$@"
else
cmd="${default} $@"
fi
docker-compose -f toolchain/docker-compose.yml run --rm -u $(id -u):$(id -g) run ${cmd}