Invoke scripts by prepending the name of the script language executable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9489 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-01-17 18:54:01 +00:00
parent 3a74ee036e
commit 2365df80bf
4 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-01-17 Angus Leeming <leeming@lyx.org>
* buffer.C (readFile): prepend the name of the "lyx2lyx" script
with "python ". Workaround for a brain-dead Windows.
2005-01-16 Angus Leeming <leeming@lyx.org>
* lyx_main.[Ch] (init): rewrite code to prepend the CWD to the PATH

View File

@ -619,7 +619,8 @@ bool Buffer::readFile(LyXLex & lex, string const & filename, pit_type const pit)
filename));
return false;
}
string command = LibFileSearch("lyx2lyx", "lyx2lyx");
string command =
"python " + LibFileSearch("lyx2lyx", "lyx2lyx");
if (command.empty()) {
Alert::error(_("Conversion script not found"),
bformat(_("%1$s is from an earlier"

View File

@ -1,3 +1,8 @@
2005-01-17 Angus Leeming <leeming@lyx.org>
* tex_helpers.C (rescanTexStyles): prepend the name of the
"TeXFiles" script with "sh ". Workaround for a brain-dead Windows.
2005-01-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* ControlErrorList.C (goTo): fix the commented-out code (bug

View File

@ -50,7 +50,7 @@ void rescanTexStyles()
Path p(package().user_support());
Systemcall one;
one.startscript(Systemcall::Wait,
LibFileSearch("scripts", "TeXFiles.sh"));
"sh " + LibFileSearch("scripts", "TeXFiles.sh"));
}