diff options
author | Daniel Harding <33dannye@gmail.com> | 2020-05-16 21:42:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 21:42:24 -0500 |
commit | 8a924f1f783572ff395f617f99546b4c949c8b04 (patch) | |
tree | 1b6c7de331cb983256651b11b8adf413a3a434f1 /tools/unused_sources.sh | |
parent | 88d7e9a34a8b610b358cec1ccc6660634ca9ce80 (diff) | |
parent | ed94962edf1668aba3f60938e8a5ba8040e2a59c (diff) |
Merge pull request #30 from entrpntr/spring-cleaning
Spring Cleaning
Diffstat (limited to 'tools/unused_sources.sh')
-rwxr-xr-x | tools/unused_sources.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/unused_sources.sh b/tools/unused_sources.sh new file mode 100755 index 00000000..24fbc27d --- /dev/null +++ b/tools/unused_sources.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Finds files 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 +data/maps/map_data.asm engine/overworld/events.asm rgbdscheck.asm +data/pokemon/egg_moves.asm data/pokemon/evos_attacks.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 -E '\.(asm|gbcpal|pal|lz|[1,2]bpp|blk|bin|rle|attrmap|tilemap|dimensions)$' | sort -u > sources.txt +comm -23 sources.txt includes.txt +rm sources.txt includes.txt |