diff options
author | yenatch <yenatch@gmail.com> | 2017-05-29 23:27:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-29 23:27:19 -0400 |
commit | fb154f5a6e43a86801fd16f392633c854d099ac4 (patch) | |
tree | e366da5a9cbeb763e31a0cb1ab00b0390e853816 /scan_includes.py | |
parent | 288902139f00a9113ea9b360eb00d3109727dcfe (diff) | |
parent | 6001eeba40879de457ed9cce6e980e1a3b32543f (diff) |
Merge pull request #362 from yenatch/c-tools
Replace the python tools with C tools and rgbgfx. Add Pokemon pngs
Diffstat (limited to 'scan_includes.py')
-rw-r--r-- | scan_includes.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/scan_includes.py b/scan_includes.py deleted file mode 100644 index 60929d3fe..000000000 --- a/scan_includes.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/python -# coding: utf-8 - -""" -Recursively scan an asm file for dependencies. -""" - -import sys -import argparse - -includes = set() - -def scan_file(filename): - for line in open(filename): - if 'INC' not in line: - continue - line = line.split(';')[0] - if 'INCLUDE' in line: - include = line.split('"')[1] - includes.add(include) - scan_file(include) - elif 'INCBIN' in line: - include = line.split('"')[1] - includes.add(include) - -def main(): - ap = argparse.ArgumentParser() - ap.add_argument('filenames', nargs='*') - args = ap.parse_args() - for filename in set(args.filenames): - scan_file(filename) - sys.stdout.write(' '.join(includes)) - -if __name__ == '__main__': - main() |