-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·22 lines (17 loc) · 1006 Bytes
/
Copy pathrun.sh
File metadata and controls
executable file
·22 lines (17 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
BASE_DIR="$(pwd)"
CMD="${BASE_DIR}/cbuild/d2k -iwad doom2.wad -playdemo DEMO3 -nomouse"
CMD="${BASE_DIR}/cbuild/d2k -iwad freedm.wad -skill 5 -warp 1 -nomonsters -nomouse -deathmatch -frags 50 -timer 10"
CMD="${BASE_DIR}/cbuild/d2k -iwad doom2.wad -file gothicdm.wad -playdemo DEMO1 -dumpdemo d2kdump.bin"
CMD="${BASE_DIR}/cbuild/d2k -iwad doom2.wad -file dwango5.wad -skill 5 -warp 1 -nomonsters -nomouse -deathmatch -frags 50 -timer 10"
CMD="${BASE_DIR}/cbuild/d2k -skill 5 -warp 1 -nomonsters -nomouse"
CMD="${BASE_DIR}/cbuild/d2k -iwad doom2.wad -fastdemo /home/charlie/.d2k/demos/30bt0941.lmp"
# mkdir -p ~/.d2k/scripts && cp -r "${BASE_DIR}/scripts/"* ~/.d2k/scripts/
# mkdir -p ~/.d2k/fonts && cp "${BASE_DIR}/fonts/"* ~/.d2k/fonts/
# gdb -ex 'source gdbserver.txt' --args $CMD
# gdb -ex run --args $CMD
# gdb -ex "source gdbdemo.txt" --args $CMD
# gdb --args $CMD
CPUPROFILE=cpu.prof $CMD; pprof -gv cbuild/d2k cpu.prof
# valgrind --leak-check=full --show-leak-kinds=all $CMD
# $CMD