Richard Heck
f9de88c53c
Remove the shebang line from our python scripts, per Jose's suggestion.
...
Fedora ships these chmod 644 and has never seen a problem. The advantage
to doing this is that it better controls what version of python we are
using to launch the script, and it will reveal if we're somehow somewhere
not controlling that properly.
2014-01-28 12:52:16 -05:00
Richard Heck
72c2a72afd
Fix bug reported on user list: the path variable here was undefined,
...
causing a failure when running outside the user tree. This was my
fault: when I refactored this routine, I failed to note that this
variable was now undefined.
2012-11-27 20:50:09 -05:00
Enrico Forestieri
f6fde4b553
Fix bug #8379 : LyX Archive fails to include BibTeX files
2012-10-20 18:27:35 +02:00
Enrico Forestieri
fbcf2486d8
Fix bug #8164 : lyxpak.py fails to include filenames with spaces
...
People love embedding spaces in filenames, so account for that.
2012-05-20 16:32:47 +02:00
Enrico Forestieri
5003431903
Fix bug #7933 (lyx2lyx error while running lyxpak.py)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40544 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-24 11:54:30 +00:00
Enrico Forestieri
40d4d94b01
Also include in the archive the files referenced in ERT in the document body.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39692 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-16 14:40:40 +00:00
Enrico Forestieri
45aa989efc
Use the normalized path for checking whether it has already been gathered.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39691 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-16 12:03:54 +00:00
Enrico Forestieri
517cfe9266
Check whether the filename is really a file. Also protect against recursive
...
inclusions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39690 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-16 10:07:56 +00:00
Enrico Forestieri
1880933a87
Fix correct operation of lyxpak.py when using the '-t' or '-z' switches.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38416 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-16 16:22:58 +00:00
Richard Heck
b7c21b6ac6
More has_key replacements.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37647 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 02:30:44 +00:00
Richard Heck
c87c5ee46a
Fix up some comments, and change the recursive call to match the new
...
signature.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37559 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-08 00:13:32 +00:00
Richard Heck
b26fc9ff62
Get rid of the global lyx2lyx variable.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37558 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-08 00:10:19 +00:00
Richard Heck
495558b5fd
Factor out the routine that finds lyx2lyx.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37557 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-08 00:07:47 +00:00
Richard Heck
10bedbd268
Introduce options for the lyxpak script, allowing the user to choose whether
...
to create a zip or a tar.gz, to provide the output directory as an option,
and also to specify the location of the lyx2lyx script as an option.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37547 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 19:38:44 +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
bf6c45dd09
Protect against multiple occurrences of the common prefix.
...
For example, if the common prefix is only the root '/'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37516 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 18:35:27 +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