1 2 3 4 5
#!/bin/sh set -e -u -o pipefail mode="${1:-debug}" scripts/build_$mode.sh bin/$mode/unit || gdb bin/$mode/unit