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
|
|
|
|
return
|
|
|
|
|
|
|
|
from init import init
|
|
|
|
if command_line.do_init:
|
|
|
|
init()
|
|
|
|
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()
|
|
|
|
|
|
|
|
import create_man
|
|
|
|
create_man.run()
|
|
|
|
|
|
|
|
main()
|