X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Ftools%2Fupdatedocs.py;h=9101099d4bce3ecdb4a6dbcb2d202a72aa413ca0;hb=0272ae778d7e67ef4741ea190615c585c32d9955;hp=a912680b0aad406014b006a31fe9f6dc57750692;hpb=a8ad43d4fd16c91e1ca4089efe60cebfa6ce4e4c;p=lyx.git diff --git a/development/tools/updatedocs.py b/development/tools/updatedocs.py index a912680b0a..9101099d4b 100755 --- a/development/tools/updatedocs.py +++ b/development/tools/updatedocs.py @@ -14,6 +14,7 @@ import os, re, string, sys, subprocess, shutil +from gen_lfuns import main as genlfuns def convertdir(docdir, prefix, lyx2lyx, lyx, systemlyxdir): @@ -50,6 +51,18 @@ def convertdir(docdir, prefix, lyx2lyx, lyx, systemlyxdir): def main(argv): toolsdir = os.path.dirname(argv[0]) + + # first generate LFUNs.lyx + lyxaction = os.path.abspath(os.path.join(toolsdir, "../../src/LyXAction.cpp")) + lfunspath = os.path.abspath(os.path.join(toolsdir, "../../lib/doc")) + lfuns = os.path.join(lfunspath, "LFUNs.lyx") + # genlfuns refuses to overwrite files + if os.path.exists(lfuns): + os.rename(lfuns, os.path.join(lfunspath, "LFUNs.lyx.old")) + # genlfuns requires a trailing slash + genlfuns(["genlfuns", lyxaction, lfunspath + os.sep]) + + # then update all docs lyx2lyx = os.path.abspath(os.path.join(toolsdir, "../../lib/lyx2lyx/lyx2lyx")) systemlyxdir = os.path.abspath(os.path.join(toolsdir, "../../lib")) if len(argv) > 1: