updatedocs.py now updates templates and examples

development/MacOSX/ReadMe files are also updated.
This commit is contained in:
Scott Kostyshak 2015-11-13 12:59:28 -05:00
parent 82cf4838dc
commit 08d3456a71

View File

@ -44,10 +44,12 @@ def convertdir(docdir, prefix, lyx2lyx, systemlyxdir):
def main(argv): def main(argv):
toolsdir = os.path.dirname(argv[0]) toolsdir = os.path.dirname(argv[0])
docdir = os.path.abspath(os.path.join(toolsdir, '../../lib/doc'))
lyx2lyx = os.path.abspath(os.path.join(toolsdir, "../../lib/lyx2lyx/lyx2lyx")) lyx2lyx = os.path.abspath(os.path.join(toolsdir, "../../lib/lyx2lyx/lyx2lyx"))
systemlyxdir = os.path.abspath(os.path.join(toolsdir, "../../lib")) systemlyxdir = os.path.abspath(os.path.join(toolsdir, "../../lib"))
convertdir(docdir, '', lyx2lyx, systemlyxdir) docpaths = ['../../lib/doc', '../../lib/examples', '../../lib/templates', '../../development/MacOSX/ReadMe']
for docpath in docpaths:
docdir = os.path.abspath(os.path.join(toolsdir, docpath))
convertdir(docdir, '', lyx2lyx, systemlyxdir)
return 0 return 0