mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
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:
parent
5036183ea4
commit
c9db26c827
@ -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
|
||||
|
10
src/buffer.C
10
src/buffer.C
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user