Improve autotools support for generating LFUNs.lyx

The tqrget now works properly when out of source directory qnd uses the $(PYTHON) variable. Also, the use of the error() function has been fixed in the gen_lfun.py script.
This commit is contained in:
Jean-Marc Lasgouttes 2014-02-13 13:26:18 +01:00
parent ea25b62b1b
commit 4ec02b46b5
2 changed files with 7 additions and 5 deletions

View File

@ -48,8 +48,10 @@ rpmdist: dist
doxydoc: doxydoc:
cd sourcedoc; $(MAKE) doxydoc cd sourcedoc; $(MAKE) doxydoc
lfundoc: lfundoc: $(srcdir)/lib/doc/LFUNs.lyx
development/tools/gen_lfuns.py src/LyXAction.cpp > lib/doc/LFUNs.lyx
$(srcdir)/lib/doc/LFUNs.lyx: $(srcdir)/development/tools/gen_lfuns.py $(srcdir)/src/LyXAction.cpp
$(AM_V_GEN)$(PYTHON) $^ >$@ 2>/dev/null
keystest: keystest:
development/keystest/lyx_make.sh development/keystest/lyx_make.sh

View File

@ -383,8 +383,8 @@ def main(argv):
error(usage(script_name)) error(usage(script_name))
# input file # input file
lyxaction_path = argv[1] lyxaction_path = argv[1]
if not os.path.exists(lyxaction_path): if not os.path.isfile(lyxaction_path):
error(script_name + ": %s is not a valid path" % lyxaction_path, usage(argv[0])) error(script_name + ": %s is not a valid path" % lyxaction_path)
# output file # output file
if len(argv) == 3: if len(argv) == 3: