diff options
author | entrpntr <entrpntr@gmail.com> | 2020-04-20 21:27:44 -0400 |
---|---|---|
committer | entrpntr <entrpntr@gmail.com> | 2020-04-20 21:36:29 -0400 |
commit | b87cc706430f281d6af24daa942890574449a803 (patch) | |
tree | 6d292a71a1c5d302b57c3e85cf40a5f52dfddfcd /tools/unused_sources.sh | |
parent | 2883bfb9b1d3db35d9f1cb61ee0d9c015df4de30 (diff) |
Miscellaneous cleanup before continuing.
Diffstat (limited to 'tools/unused_sources.sh')
-rwxr-xr-x | tools/unused_sources.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/unused_sources.sh b/tools/unused_sources.sh new file mode 100755 index 00000000..233c032c --- /dev/null +++ b/tools/unused_sources.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Finds asm sources that aren't included in the build + +# top-level sources listed in Makefile +toplevel='audio.asm data/text/common.asm data/pokemon/dex_entries.asm wram.asm +main.asm home.asm gfx/sprites.asm gfx/pics_gold.asm gfx/pics_silver.asm' + +for asm in $toplevel; do + echo "$asm" + python tools/scan_includes.py "$asm" + echo +done | tr ' ' '\n' | sort -u > includes.txt +git ls-files | grep '\.asm$' | sort -u > sources.txt +comm -23 sources.txt includes.txt +rm sources.txt includes.txt |