Jean-Marc Lasgouttes wrote:
> Angus> As it stands, if LyX is found to be run in-place, then the
> Angus> "-sysdir" command line and the "LYX_DIR_13X" environment
> Angus> variable are both ignored. (They're checked in
> Angus> get_system_lyxdir().)
> 
> Angus> Is this acceptable, or should we be able to specify an
> Angus> arbitrary system_lyxdir when running lyx from the build tree?
> 
> I think that's OK. When running in place, we should use the original
> source tree as system_lyxdir.

Ok.

One more question. I've slotted this packaging stuff into LyX 1.3.x. All it
does is set the paths in the package class. The rest of LyX uses the
existing stuff. Running in-place I get this output:

<package>
        system_lyxdir /home/angus/lyx/13x/lib
        build_lyxdir /home/angus/lyx/13x/build-xforms/lib/
        user_lyxdir /home/angus/.lyx-1.3.6cvs/
        localedir /usr/local/share/locale
        documentdir /home/angus
        tmpdir /tmp
        homedir /home/angus
<\package>

Question. Should localedir be set unless I explicitly define the
LYX_LOCALEDIR environment variable? It's being set above with the
LOCALEDIR macro being passed to package.C by the compiler.

g++ -DHAVE_CONFIG_H -I. -I../../../src/support -I../../src
-I../../../src/support/.. -I../../../boost  -isystem /usr/X11R6/include 
-g -O -W -Wall \
        -DLYX_DIR=\"/usr/local/share/lyx-1.3.6cvs\" \
        -DTOP_SRCDIR=\"../../..\" \
        -DLOCALEDIR=\"/usr/local/share/locale\" \
        -c ../../../src/support/package.C

I attach the patch should (any of) you wish to try it out.

-- 
Angus

Attachment: package_13x.diff.bz2
Description: BZip2 compressed data

Reply via email to