[tex-live] texdoc support for zipped files
Norbert Preining
preining at logic.at
Mon Jun 8 12:39:21 CEST 2009
Hi Manuel,
I was trying to reactivate the support_zipped but that didn't work at
all. In the version we have in Debian 0.40 it gave
./texdoc.tlu:786: attempt to concatenate global 'viewext' (a nil value)
(line number might differ!)
In the version currently in texlive it gave above that
texdoc warning: Unkown option "rm_dir"
from built-in defaults. Skipping.
texdoc warning: Unkown option "unzip_bz2"
from built-in defaults. Skipping.
texdoc warning: Unkown option "rm_file"
from built-in defaults. Skipping.
texdoc warning: Unkown option "unzip_gz"
from built-in defaults. Skipping.
Now, for the version we have in Debian I have fixed that. THere were
some problems:
- first the matching for ext did only get the last (.gz) extension and
not the viewer extension, so that broke and created the first error
same in texlive version
- then the command generated did not work because it did
evince "/tmp/texdoc.d898asdf/file;rm -f/tmp/texdoc.d898asdf/file;rmdir /tmp/texdoc.d898asdf" &
(from the gsub replacement.
Here again there are two problems:
. the %s should not be replaced wit the full, but with the first
element if split on ;
I have worked around that, but it works ONLY!!!! if the viewing
command has NO options after the %s
good
( xpdf %s ) &
bad
( xpdf %s -option ) &
because the expansion will be
good
( xpdf "/tmp/texdoc.../file"; rm ..; rmdir ... ) &
bad
( xpdf "/tmp/texdoc.../file"; rm ..; rmdir ... -option ) &
but i don't see any better option. Well I see one, but that needs
more programming
. between the -f and the /tmp there must be a space, otherwise rm
complains that / is not an option
I attach a patch against 0.40. Unfortunately applying that change to
0.42 in texlive-svn did not work at all, again, because it seems you
have changed some defs, I get:
./texdoc.tlu:760: attempt to concatenate global 'unzip_command' (a nil value)
so there might be other changes necessary.
What do you think about the above approach?
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining at logic.at> Vienna University of Technology
Debian Developer <preining at debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
`You ARE Zaphod Beeblebrox?'
but don't shout it out or they'll all
want one.'
`THE Zaphod Beeblebrox?'
`No, just A Zaphod Bebblebrox, didn't you hear I come in
six packs?'
I just heard on the sub-ether
radio report. It said you were dead...'
`Yeah, that's right, I just haven't stopped moving yet.'
--- Zaphod and the Guide's receptionist.
--- Douglas Adams, The Hitchhikers Guide to the Galaxy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texdoc.diff
Type: text/x-diff
Size: 2693 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20090608/e01b949f/attachment.bin>
More information about the tex-live
mailing list