summaryrefslogtreecommitdiff
path: root/tools/unused_sources.sh
diff options
context:
space:
mode:
authorentrpntr <entrpntr@gmail.com>2020-06-10 20:46:13 -0400
committerentrpntr <entrpntr@gmail.com>2020-06-10 20:47:22 -0400
commit0c83c0b5bc93d24d34d8acc2e0a8d66ea3075030 (patch)
treea4180d075ead963461b5b525fe794b43a2101169 /tools/unused_sources.sh
parent48a9f3aa75f65cd756b8f08290bd290e676cd1a4 (diff)
rip baserom
Diffstat (limited to 'tools/unused_sources.sh')
-rwxr-xr-xtools/unused_sources.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/unused_sources.sh b/tools/unused_sources.sh
deleted file mode 100755
index b0b9e368..00000000
--- a/tools/unused_sources.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/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 gfx/tilesets.asm
-engine/movie/credits.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