My <build dir>/lib/lyxrc.defaults file contains the entry:

\converter latex  lyx  "reLyX-1.4.0cvs -f $$i"  ""

This converter has never worked, not even on *nix, if I don't go to the
bother to install lyx because the script is located in the 
<build support>/lib/reLyX directory and LyX can't find it.

Of course, when lyx is installed, this script and noweb2lyx are both copied
to the <lyx binary dir>. Thereafter, invoking them works because they're
in the PATH.

This strategy will fail to work on Windows for the same reason that
invoking "lyx2lyx" didn't work. Windows is unable to work out that "reLyX"
is a perl script and act accordingly.

I'd like to suggest three changes:
1. Leave reLyX and noweb2lyx either in the <build support>/reLyX directory
or in the <system support>/reLyX directory depending on whether we're
using an uninstalled or installed version of LyX.

2. Change the meaning of the (1.4.x) "$$s" placeholder from its current
meaning of "<support dir>/scripts" to simply "<support dir>".

3. Change the definition of the various scripts defined as converters in
the lyxrc.defaults to:

-\converter latex  lyx  "reLyX-1.4.0cvs -f $$i"  ""
+\converter latex  lyx  "perl $$s/reLyX/reLyX-1.4.0cvs -f $$i"  ""

Similarly, the definition of all the converters that are located in the
scripts sub-directory will be changed in similar fashion to:

-\converter fig  pstex  "sh $$s/fig2pstex.sh $$i $$o"  ""
+\converter fig  pstex  "sh $$s/scripts/fig2pstex.sh $$i $$o"  ""

Not only will this mean that things will work under Windows, but it will
also mean that they'll work on *nix when we're using an uninstalled
version of LyX.

Thoughts?

(I don't think that it matters that reLyX is slated to be retired. The same
argument still holds true for noweb2lyx.)
-- 
Angus

Reply via email to