Commit Graph

267 Commits

Author SHA1 Message Date
Julien Rioux
d75b83e293 * configure.py : Check for java and perl interpreters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39637 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 23:56:28 +00:00
Enrico Forestieri
2ed034ea22 Fix bug #7586 (Temporary file chkconfig.ltx in user directory not deleted if configure fails)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39562 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-29 16:44:29 +00:00
Enrico Forestieri
8e812f44af Avoid code duplication.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39561 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-29 16:23:58 +00:00
Enrico Forestieri
1126e3dfd8 Fix bug #7718 (Configure fails if shell autorun commands are enabled in the registry)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39554 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-28 22:57:58 +00:00
Enrico Forestieri
3d82ff41ec Close stdin of the command spawn by subprocess.Popen, otherwise the
command hangs if something goes wrong. Also allow any kind of line endings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39553 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-28 22:29:38 +00:00
Julien Rioux
9657ffd77f revert part of the last commit that should not have been
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39534 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 23:46:52 +00:00
Julien Rioux
0243eed665 configure.py : subprocess, second try (check_output requires
python 2.7 and throws unwanted exceptions when the process
return value is not 0

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39533 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 23:29:37 +00:00
Richard Heck
9d8c3d018b Revert "The call to cmdOutput can throw an exception, so we need to be careful".
This will make reverting the previous commit easier.

This reverts commit 82ab1aef334d8573cc3e861e2620d9b4c59f88fe.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39532 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 23:13:34 +00:00
Richard Heck
1700d0c747 The call to cmdOutput can throw an exception, so we need to be careful
here, lest configure.py abort.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39529 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 23:06:15 +00:00
Julien Rioux
f51dffd231 configure.py : replace os.popen with subprocess.Popen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39526 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 17:11:50 +00:00
Julien Rioux
7ea78193ca configure.py : make sure latex exits gracefully
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39525 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 17:11:48 +00:00
Jean-Marc Lasgouttes
f4a2142ee8 Revert part of r39509 that was not supposed to go in.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39510 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-23 10:42:35 +00:00
Jean-Marc Lasgouttes
7fc83acb5e Add possibility to export the R code from a sweave-enabled document
(patch from yihui, part of #7555)
http://www.lyx.org/trac/ticket/7555#comment:18

This adds the new format "R/S code" with extension .R and a converter from .Rnw.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39509 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-23 10:33:42 +00:00
Uwe Stöhr
cc5cc067a0 new export flavor "DVILUATEX", fixes bug #7713, patch from Jürgen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39457 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-10 02:23:44 +00:00
Uwe Stöhr
9da2f1bc9a configure.py: fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39445 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-09 01:34:25 +00:00
Uwe Stöhr
50f4a55e95 configure.py: add menu entry to convert to LyX 2.0.x
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39384 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-30 16:41:29 +00:00
Pavel Sanda
5e0b52f9f1 Postscript is missing in View menu.
This was forgotten in r37616.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39262 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-09 19:13:21 +00:00
Julien Rioux
46813f1b5b configure.py : Simplify things a bit. With this
commit, a program is checked only once instead of twice, and
it is added as alternative editor and viewer.  The ordering
of rc entries in lyxrc.defaults is changed slightly, but
nothing is lost.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39079 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-15 22:31:03 +00:00
Julien Rioux
9c9e43da3f configure.py : Allow to specify alt_type as a list.
The intend is to specify ['editor', 'viewer'] eventually.
Still no change in the produced output and in lyxrc.defaults

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39078 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-15 22:27:44 +00:00
Julien Rioux
580fa7ee3b configure.py : Remove more code duplication.
No change in output, at least none intended.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39077 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-15 22:24:30 +00:00
Julien Rioux
834604ea5d configure.py : Remove code duplication (more to come).
No change in output, at least none intended.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39075 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-15 22:22:41 +00:00
Julien Rioux
3294e6429a configure.py : sort lists, remove superfluous line continuations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39037 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-13 18:57:29 +00:00
Julien Rioux
2dae004697 configure.py : white space only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39036 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-13 18:32:27 +00:00
Julien Rioux
253ac28a0c Add the Format tag to lyxrc.defaults produced by configure.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38974 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 14:58:19 +00:00
Julien Rioux
5eb1fb0c05 Fix bug #7608 (Wrong path separator used for Inkscape on Windows)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38973 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 14:55:47 +00:00
Enrico Forestieri
ae361aff19 Apparently, this extra check is not necessary as the first one works
whatever the TeX engine.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38918 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-01 15:21:16 +00:00
Enrico Forestieri
bd9d3cb0eb Query about the exact length of a short name, as it may happen that
a short name length is actually greater than the long name length.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38908 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-01 01:51:17 +00:00
Enrico Forestieri
ef51dbff8e On Windows, not all file systems provide for a short form of a filename,
so we have to account for this. Also, when checking whether TeX allows
spaces in file names, we try different quoting styles in order to account
for the kind of TeX engine used.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38907 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-01 00:40:03 +00:00
Enrico Forestieri
226b29943f On Windows, avoid spaces in filenames passed to latex by using the
short form of the path.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38894 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-31 01:12:27 +00:00
Richard Heck
ec14c3f364 Recommit previously unintended commit, now that it has been approved. ;-)
Seriously, this resovles a problem with module detection and configuration, 
namely, that we detect BOTH a module in the system directory and a custom
version of it in the user directory.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38387 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-15 00:54:50 +00:00
Richard Heck
5c93852e3c Revert unintended commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38382 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-14 21:10:07 +00:00
Richard Heck
c10cd68fba Constify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38381 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-14 20:34:18 +00:00
Pavel Sanda
cb7ecd7fee Sensible editor launches terminal editors, closing #7448.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38350 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-12 13:35:41 +00:00
Jürgen Spitzmüller
3fb4bf59c6 * configure.py: remove files produced by the LuaTeX test when the test is over.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38241 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-04 11:39:59 +00:00
Julien Rioux
41524a4f6f fix r38143
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38150 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:59:58 +00:00
Julien Rioux
4d4f25859f fix r38144
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38149 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:59:27 +00:00
Julien Rioux
7142c83ab5 show lilypond-book format in export menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38145 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:31:23 +00:00
Julien Rioux
b3230005c9 second part of #7383: lilypond -> xetex|luatex converters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38144 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:30:49 +00:00
Julien Rioux
a6a23d1781 define sweave to xetex|luatex converters
(allows one to use nonTeXFonts with literate and fix bug #7383)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38143 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:29:52 +00:00
Julien Rioux
6826bd487f fix checkTeXPaths when no latex is found
(reallows the install of LyX without MikTeX again under windows)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38142 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:26:19 +00:00
Jürgen Spitzmüller
7382181e17 * configure.py: add test for luatex version.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38050 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 15:15:27 +00:00
Jean-Marc Lasgouttes
edd51121d8 Almost finish fixing bug http://www.lyx.org/trac/ticket/6623
Now we specify the output file for sweave explicitely for robustness reasons.
We also specify prefix.string (in order to have the temp files generated in lyx tmp directory.

The only annoying file now is Rplots.pdf, but I am not sure why it is generated... 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37984 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-21 14:48:22 +00:00
Jürgen Spitzmüller
594179f330 * configure.py:
- when a layout file has no valid \Declare line, issue a warning and skip this file
	  instead of aborting the whole configuration process.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37807 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-28 16:15:03 +00:00
Richard Heck
50f845e479 Two simple changes for Python 3 compatibility.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37645 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 02:17:50 +00:00
Jürgen Spitzmüller
0489d3c496 Introduce new file format flag "menu=export" to define which document formats the File > Export menu should list. All other formats are available via the "More Formats & Options ..." (former "Custom ...") dialog.
The actual selection of formats needs to be audited.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37616 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:34:10 +00:00
Enrico Forestieri
21dd835f9d Don't rely on external utilities and use python modules for creating
a LyX archive. A zip archive is created on Windows and a gzip compressed
tar archive on *nix, as those are the de facto platform standards.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37525 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 23:45:03 +00:00
Enrico Forestieri
83f181c02f lyxpak.py has to operate on the original file, not the one in the tmpdir.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37517 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 19:09:54 +00:00
Richard Heck
5577b5c6f0 Add lyxpak.py to the distribution, and configure it appropriately for export.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37506 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 14:50:06 +00:00
Jürgen Spitzmüller
c3ed49dd92 * configure.py: check also for xindy, which is a reasonable alternative to texindy and makeindex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37422 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 16:12:35 +00:00
Georg Baum
cfc81ea3d7 Disable preview converters that need dv2dt if dv2dt is not available.
This gives a better error message on the console (although it is still
impossible to figure out what went wrong from the GUI).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37407 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 20:03:01 +00:00