> Thanks for the script. It indeed does automate everything, but I think
> that it is wasteful always downloading and compiling Qt as well as the
> svn branch. It could be made to check what actually needs doing.
> When I'll find the time I'll try to polish and add it to the wiki page.

Enrico, it would be wonderful to get your revisions on this script!
As you can see, it's not robust.  And I agree it's wasteful if the
files already exist.

In support of inverse search, I made a few untested additions to my
script: see the new lyxinstall.sh and .diff.

Also attached is a very messy script I wrote for myself (not for use
elsewhere) to create a personal Cygwin package for SVN.  I intend to
use this to install on other computers.  This leads me to my next
question:

Is there any reason the following files aren't stored somewhere in SVN?
  lyxeditor.c, lyx-win.c, lyxprofile, lyxrc.dist, setup.hint, etc.
It's really awkward for me to manually find/download/create all these
extra files.

Finally, a while back, you wrote:
> When you launch SumatraPDF through the following script:
>
>  #!/bin/bash
>  cd $(dirname $1)
>  SumatraPDF $(basename $1)
>
> SumatraPDF receives only the filename without the path. When you
> double click in the PDF, SumatraPDF passes back only the filename
> without any path. So, the cygpath command only sees a filename

For some reason, my copy of SumatraPDF returns the full path, even for
a pdf in ./.  Since 1.6.4, I've had success with the following inverse
search command:

SumatraPDF.exe -inverse-search "\"C:\cygwin\usr\local\bin\lyxeditor\"
-g \"%f\" %l"

The quotes on %f are often necessary for some reason.

Also, we may want to mention on the wiki an alternative to
\usepackage{pdfsync} is the command line
  pdflatex --synctex=-1 $$i

-Ben

Attachment: lyxinstall.sh.diff
Description: Binary data

Attachment: lyxinstall.sh
Description: Bourne shell script

Attachment: lyx-packaging.sh
Description: Bourne shell script

Reply via email to