Look for lyx2lyx in LYXDIR/lyx2lyx/

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5196 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-09-03 16:13:35 +00:00
parent 5036183ea4
commit c9db26c827
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-08-29 Dekel Tsur <dekelts@tau.ac.il>
* buffer.C (readFile): Look for lyx2lyx in LYXDIR/lyx2lyx/
2002-09-03 Angus Leeming <leeming@lyx.org>
* BufferView_pimpl.h: qualified name is not allowed in member

View File

@ -1171,7 +1171,15 @@ bool Buffer::readFile(LyXLex & lex, Paragraph * par)
"Use LyX 0.10.x to read this!"));
return false;
} else {
string const command = "lyx2lyx "
string command =
LibFileSearch("lyx2lyx", "lyx2lyx");
if (command.empty()) {
Alert::alert(_("ERROR!"),
_("Can't find conversion script."));
return false;
}
command += " -t"
+tostr(LYX_FORMAT)+" "
+ QuoteName(filename_);
cmd_ret const ret = RunCommand(command);
if (ret.first) {