Bo Peng <[EMAIL PROTECTED]> writes:
> On 6/9/06, Joost Verburg <[EMAIL PROTECTED]> wrote:
> > The version-suffix option of the scons build system doesn't seem to work
> > properly. Some resources are installed in a directory with a wrong name
> > and the suffix is not added to the users directory.

> Could you elaborate on what command you use, 
> what you get and what are expected?

I can't comment on what Joost gets, but here's a synopsis of what's expected:

The command can be invoked in two ways:

configure --with-version-suffix
configure --with-version-suffix=XXX

The first will create a default suffix (1.5.0svn I believe).
The second will create a suffix XXX. I used this second command when creating
the LyX 1.4.2 package on windows, my suffix being "14x"

The idea behind it is to enable different versions of LyX to co-exist on one
machine. It does that in different ways on Mac, Unix and Windows.

On Unix, where applications do not live in their own "package" directory it will
result in something like:
  /usr/bin/lyx-1.5.0svn
  /usr/bin/tex2lyx-1.5.0svn
  /usr/man/man1/lyx-1.5.0svn.1
  /usr/share/LyX-1.5.0svn/...
  /usr/share/locale/en/lyx-1.5.0svn.gmo
  /usr/share/locale/fr/lyx-1.5.0svn.gmo
  /home/bo/.lyx-1.5.0svn

On Mac and Windows, the only change (JMarc will correct me here if I'm wrong)
over a "normal" build is the name of the user preferences directory. LyX 1.4.2
on Windows resulted in

  C:\Documents and Settings\Angus\Application Data\LyX14x

Invoking "configure --with-version-suffix" will set macros in config.h and will
also generate src/support/package.C from the src/support/package.C.in template.

HTH,
Angus

Reply via email to