10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-06-01 10:55:19 +02:00
irpf90/src/irpf90.py

48 lines
844 B
Python
Raw Normal View History

2009-09-02 20:45:53 +02:00
#!/usr/bin/python
def main():
from command_line import command_line
2009-09-03 23:12:32 +02:00
if command_line.do_help:
command_line.usage()
2009-09-02 20:45:53 +02:00
if command_line.do_version:
from version import version
print version
from init import init
if command_line.do_init:
init()
2009-09-02 20:45:53 +02:00
2009-09-16 15:59:13 +02:00
if command_line.do_preprocess:
init()
2009-09-16 15:59:13 +02:00
from preprocessed_text import preprocessed_text
for filename,text in preprocessed_text:
if filename in command_line.preprocessed:
for line in text:
print line.text
2009-09-02 20:45:53 +02:00
if not command_line.do_run:
return
init()
import irp_stack
irp_stack.create()
2009-09-09 00:46:42 +02:00
import makefile
makefile.create()
2009-09-03 23:12:32 +02:00
2009-09-09 00:46:42 +02:00
from modules import modules, write_module
for m in modules.keys():
write_module(modules[m])
makefile.run()
2009-09-14 17:16:52 +02:00
import touches
touches.create()
2009-09-09 00:46:42 +02:00
import create_man
create_man.run()
main()