remove unused function from autowaf.py (it no longer worked with python 3.12)
This commit is contained in:
parent
82d03607b8
commit
769d9632b7
@ -400,45 +400,6 @@ def build_dir(name, subdir):
|
|||||||
else:
|
else:
|
||||||
return os.path.join('build', subdir)
|
return os.path.join('build', subdir)
|
||||||
|
|
||||||
# Clean up messy Doxygen documentation after it is built
|
|
||||||
def make_simple_dox(name):
|
|
||||||
name = name.lower()
|
|
||||||
NAME = name.upper()
|
|
||||||
try:
|
|
||||||
top = os.getcwd()
|
|
||||||
os.chdir(build_dir(name, 'doc/html'))
|
|
||||||
page = 'group__%s.html' % name
|
|
||||||
if not os.path.exists(page):
|
|
||||||
return
|
|
||||||
for i in [
|
|
||||||
['%s_API ' % NAME, ''],
|
|
||||||
['%s_DEPRECATED ' % NAME, ''],
|
|
||||||
['group__%s.html' % name, ''],
|
|
||||||
[' ', ''],
|
|
||||||
['<script.*><\/script>', ''],
|
|
||||||
['<hr\/><a name="details" id="details"><\/a><h2>.*<\/h2>', ''],
|
|
||||||
['<link href=\"tabs.css\" rel=\"stylesheet\" type=\"text\/css\"\/>',
|
|
||||||
''],
|
|
||||||
['<img class=\"footer\" src=\"doxygen.png\" alt=\"doxygen\"\/>',
|
|
||||||
'Doxygen']]:
|
|
||||||
os.system("sed -i 's/%s/%s/g' %s" % (i[0], i[1], page))
|
|
||||||
os.rename('group__%s.html' % name, 'index.html')
|
|
||||||
for i in (glob.glob('*.png') +
|
|
||||||
glob.glob('*.html') +
|
|
||||||
glob.glob('*.js') +
|
|
||||||
glob.glob('*.css')):
|
|
||||||
if i != 'index.html' and i != 'style.css':
|
|
||||||
os.remove(i)
|
|
||||||
os.chdir(top)
|
|
||||||
os.chdir(build_dir(name, 'doc/man/man3'))
|
|
||||||
for i in glob.glob('*.3'):
|
|
||||||
os.system("sed -i 's/%s_API //' %s" % (NAME, i))
|
|
||||||
for i in glob.glob('_*'):
|
|
||||||
os.remove(i)
|
|
||||||
os.chdir(top)
|
|
||||||
except Exception as e:
|
|
||||||
Logs.error("Failed to fix up %s documentation: %s" % (name, e))
|
|
||||||
|
|
||||||
# Doxygen API documentation
|
# Doxygen API documentation
|
||||||
def build_dox(bld, name, version, srcdir, blddir, outdir=''):
|
def build_dox(bld, name, version, srcdir, blddir, outdir=''):
|
||||||
if not bld.env['DOCS']:
|
if not bld.env['DOCS']:
|
||||||
|
Loading…
Reference in New Issue
Block a user