Changeset 3632

Show
Ignore:
Timestamp:
17/10/08 23:01:32 (3 months ago)
Author:
dmeyer
Message:

add global doc support

Location:
trunk
Files:
4 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/setup.py

    r3601 r3632  
    6464                os.unlink(file) 
    6565             
     66elif len(sys.argv) == 2 and sys.argv[1] == 'doc': 
     67    if not os.path.isdir('doc/html'): 
     68        os.makedirs('doc/html') 
     69    for m in submodules: 
     70        if os.path.isfile('%s/doc/Makefile' % m): 
     71            print '[setup] Entering kaa submodule', m 
     72            os.chdir(m) 
     73            try: 
     74                # execfile('setup.py') 
     75                pass 
     76            except SystemExit: 
     77                print 'failed to create doc for', m 
     78            os.chdir('..') 
     79            if not os.path.exists('doc/html/%s' % m): 
     80                os.symlink('../../%s/doc/html' % m, 'doc/html/%s' % m) 
     81            print '[setup] Leaving kaa submodule', m 
     82    os.chdir('doc') 
     83    os.system('make html') 
    6684else: 
    6785    failed = []