mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
24 lines
556 B
Python
24 lines
556 B
Python
![]() |
#!/usr/bin/python
|
||
|
|
||
|
import sys, os, shutil, subprocess
|
||
|
|
||
|
cwd = os.path.dirname(__file__)
|
||
|
|
||
|
doxygen = None
|
||
|
for path in os.environ.get('PATH', '/bin:/usr/bin').split(':'):
|
||
|
sfile = '%s/doxygen' % path
|
||
|
if os.access(sfile, os.X_OK):
|
||
|
doxygen = sfile
|
||
|
break
|
||
|
|
||
|
if not doxygen:
|
||
|
sys.stderr.write('Doxygen is not installed\n')
|
||
|
sys.exit(1)
|
||
|
|
||
|
sys.stdout.write('Generating API docs for Katie...\n')
|
||
|
apidir = '%s/../apidocs' % cwd
|
||
|
if os.path.isdir(apidir):
|
||
|
shutil.rmtree(apidir)
|
||
|
subprocess.check_call((doxygen, '%s/../doxygen.conf' % cwd))
|
||
|
|