[tex-live] texdoc can't find texmf.cnf

Jonathan Kew jonathan_kew at sil.org
Mon Jun 23 00:03:54 CEST 2008


On Sun, 22 Jun 2008 20:16:43 +0200
 Manuel Pegourie-Gonnard <mpg at elzevir.fr> wrote:
> [re-sending on-list, sorry for the previous private reply, and adding a detail]
> 
> r8941 should fix this problem, though I'm not quite sure the root of the
> problem is actualy fixed  (need to think a bit more about it).  Anyway, I
> tested this on an OSX machine and it looks working.  Please complain if it
> doesn't.

Yes, that helps - thanks!

One other issue: the default viewer commands for unix-like systems in the script are not appropriate for OS X, where it's not "standard" to have X11 and any X-based tools installed. I'm sure there's a way for users to override these settings, but it would be good if the built-in defaults worked wherever possible.

A suggested patch follows; I'm don't know if "os.name" is the best thing to test; that was just a guess as to what might be available, but seems to work here.

Jonathan

Index: texdoc.tlu
===================================================================
--- texdoc.tlu	(revision 8943)
+++ texdoc.tlu	(working copy)
@@ -256,14 +256,25 @@
       gz = "gzip -d -c ",
       bz2 = "bzip2 -d -c "
    };
-   texdoc_viewer = { 
-      dvi  = '(xdvi %s ) &',
-      html = '(see %s) &',
-      pdf = '(xpdf %s) &',
-      ps = '(gv %s) &',
-      txt = '(less %s )',
-      tex = '(less %s )'
-   };
+   if (os.name == 'macosx') then
+      texdoc_viewer = { 
+         dvi  = '(open %s)',
+         html = '(open %s)',
+         pdf = '(open %s)',
+         ps = '(open %s)',
+         txt = '(less %s )',
+         tex = '(less %s )'
+      };
+   else
+      texdoc_viewer = { 
+         dvi  = '(xdvi %s ) &',
+         html = '(see %s) &',
+         pdf = '(xpdf %s) &',
+         ps = '(gv %s) &',
+         txt = '(less %s )',
+         tex = '(less %s )'
+      };
+   end
    rmfile_command = 'rm -f ';
    rmdir_command = 'rmdir ';
 end



More information about the tex-live mailing list