3 if ! make -j$(nproc); then
7 DEBUG_DIR=/tmp/dragonblocks_alpha_debug_$$/
10 echo "singleplayer" > $DEBUG_DIR/name
12 COMMON="set confirm off
13 handle SIGTERM nostop print pass
14 handle SIGPIPE nostop noprint pass
25 run \"[::1]:4000\" < $DEBUG_DIR/name
26 " > $DEBUG_DIR/client_script
29 set print thread-events off
31 " > $DEBUG_DIR/server_script
33 alacritty -e bash -c "
34 echo \$\$ > $DEBUG_DIR/server_pid
35 exec gdb --command $DEBUG_DIR/server_script ./dragonblocks_server
39 gdb --command $DEBUG_DIR/client_script ./dragonblocks
41 kill `cat $DEBUG_DIR/server_pid`