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
26 run \"[::1]:4000\" < $DEBUG_DIR/name
27 " > $DEBUG_DIR/client_script
30 set print thread-events off
32 " > $DEBUG_DIR/server_script
34 alacritty -e bash -c "
35 echo \$\$ > $DEBUG_DIR/server_pid
36 exec gdb --command $DEBUG_DIR/server_script ./dragonblocks_server
40 gdb --command $DEBUG_DIR/client_script ./dragonblocks
42 kill `cat $DEBUG_DIR/server_pid`