On Tue, Sep 03, 2002 at 12:34:06PM +0300, Martin Vermeer wrote: > I agree with Angus though: why not use the sh convertDefault.sh syntax? > > > Martin
Here's the patch. Tested and works (for convertDefault at least). 03-09-2002 Martin Vermeer <[EMAIL PROTECTED]> * graphics/GraphicsConverter.C: implemented the "sh scriptfile.sh" syntax for both convertDefault and lyxpreview2xpm. Martin
Index: GraphicsConverter.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/graphics/GraphicsConverter.C,v retrieving revision 1.16 diff -u -p -r1.16 GraphicsConverter.C --- GraphicsConverter.C 2002/08/06 15:25:50 1.16 +++ GraphicsConverter.C 2002/09/03 09:20:52 @@ -146,14 +146,14 @@ Converter::Impl::Impl(string const & fro if (!success) { script_file_ = string(); if (from_format == "lyxpreview") { - script_command_ = + script_command_ = "sh " + LibFileSearch("scripts", "lyxpreview2xpm.sh") + " " +from_file + " " + to_file_; lyxerr[Debug::GRAPHICS] << "\tI use lyxpreview2xpm for the conversion\n\t" << script_command_ << endl; } else { - script_command_ = + script_command_ = "sh " + LibFileSearch("scripts", "convertDefault.sh") + ' ' + from_format + ':' + from_file + ' ' + to_format + ':' + to_file_;
msg43956/pgp00000.pgp
Description: PGP signature