forked from bartvdbraak/blender
e7abdd7d56
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/Unix_FHS for scons WITH_BF_FHS enabled an alternative layout eg. scons WITH_BF_FHS=1 BF_INSTALLDIR="/usr/local" for CMake just run "make install" after make (CMAKE_INSTALL_PREFIX is used for the base path) Currently only scripts use both the system and user path correctly, other areas of blender have their own path code inline with lots of ifdefs, needs to be carefully updated.
35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
import os
|
|
|
|
if env['WITH_BF_FHS']:
|
|
BLENDERPATH = os.path.join(env['BF_INSTALLDIR'], 'share', 'blender', env['BF_VERSION'])
|
|
else:
|
|
BLENDERPATH = env['BF_INSTALLDIR']
|
|
|
|
from optparse import OptionParser
|
|
import epydoc
|
|
from epydoc.docbuilder import build_doc_index
|
|
from epydoc import cli
|
|
names = env.Glob("source/gameengine/PyDoc/*.py")
|
|
docindex = build_doc_index(names)
|
|
optvalues = cli.OPTION_DEFAULTS
|
|
optvalues["verbose"] = 1
|
|
optvalues["quiet"] = 0
|
|
optvalues["include_source_code"] = 0
|
|
optvalues["inheritance"] = "included"
|
|
optvalues["show_private"] = 0
|
|
optvalues["target"] = os.path.join(BLENDERPATH, 'doc')
|
|
optvalues["url"] = "http://www.blender.org"
|
|
optvalues["top"] = "Game Engine API"
|
|
optvalues["name"] = "Blender"
|
|
optvalues["noprivate"] = 1
|
|
optvalues["noframes"] = 1
|
|
optvalues["names"] = names
|
|
optparser = OptionParser()
|
|
optparser.set_defaults(**optvalues)
|
|
(options, args) = optparser.parse_args([])
|
|
print "Writing Game Engine epydocs to \"%s\"" % optvalues["target"]
|
|
cli.write_html(docindex, options)
|
|
|