summaryrefslogtreecommitdiff
path: root/scan_includes.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2016-08-24 22:01:45 -0400
committeryenatch <yenatch@gmail.com>2016-08-24 22:01:45 -0400
commit6fc9daf2a9e5b9d355221c402812c378fe840494 (patch)
tree3bdbd184717b544a36e38b7df58e24a2f9e8490f /scan_includes.py
parent2ab468268aa156ae60e0e60a1319552342f692f6 (diff)
Remove the python scan_includes.
gfx.py remains, since it's still useful for two-way conversion.
Diffstat (limited to 'scan_includes.py')
-rw-r--r--scan_includes.py35
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()