On Monday 26 September 2005 23:11, Bo Peng wrote:
> > However, I think that it's a little premature
> > because we still have a run-time dependence on sh :)
> > See src/graphics/GraphicsConverter.C, which generates a shell script on
> > the fly to control the conversion of your_file.eps to your_file.png
> > (say).
> >
> > I think that this thing should be recast to create a Python script in the
> > first instance.
>
> I was told that mingw is *only* needed for script configure. Now,
> there is another one, and how many others?

<shrug>Not many<\shrug>

I'd say that in order of importance there's
    lib/configure
    src/graphics/GraphicsConverter.C
    lib/scripts/*.sh

* LyX is unusable without a working lib/configure script,
* you won't get any .eps images displayed on screen without a working 
GraphicsConverter.C and
* files in some weird and wonderful format won't be converted without the 
script.

Ideally, we'd remove the hard-coding from the compiled source:

$ grep -r '"sh ' src | grep -v ChangeLog | grep -v Makefile
src/lyx_main.C:         "sh " + QuoteName(configure_script);
src/converter.C:                                "sh " +
src/lyx_cb.C:   string const configure_command = "sh " + 
QuoteName(configure_script);
src/frontends/controllers/tex_helpers.C:                        "sh " +
src/graphics/GraphicsConverter.C:                       "sh " +
src/graphics/GraphicsConverter.C:               script_command_ = "sh " + 
QuoteName(script_file_) + ' ' +

> Anyway, it does not sound too difficult to replace this on-the-fly script
> with equivalent python code.

Sure. It's not. It just needs time and energy.

> I may come up with a patch to src/graphics/GraphicsConverter.C soon.
> Bo

Attaboy!
Angus

Reply via email to