From ea2b431d5b218c946e592662a5885ee81e82e735 Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Thu, 24 Jul 2008 22:53:55 +0000 Subject: using text as default file type, rm-ing the fallback viewer git-svn-id: svn://tug.org/texlive/trunk@9756 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf/scripts/texlive/texdoc.tlu | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Master/texmf/scripts/texlive/texdoc.tlu b/Master/texmf/scripts/texlive/texdoc.tlu index e11111873c1..4c9e4290268 100755 --- a/Master/texmf/scripts/texlive/texdoc.tlu +++ b/Master/texmf/scripts/texlive/texdoc.tlu @@ -345,7 +345,6 @@ function setup_config_from_defaults() viewer_pdf = 'start', viewer_ps = 'start', viewer_txt = 'start', - viewer_fallback='start' } else -- since we don't support msdos, if os.type is not windows, it's unix if (os.name == 'macosx') then @@ -355,7 +354,6 @@ function setup_config_from_defaults() viewer_pdf = '(open %s)', viewer_ps = '(open %s)', viewer_txt = '(less %s)', - viewer_fallback='(open %s)' } else set_config_list { @@ -395,11 +393,6 @@ function setup_config_from_defaults() {'most', '(most %s)'}, {'less', '(less %s)'}, {'more', '(more %s)'} - }, - viewer_fallback = first_in_path { - {'see', '(see %s) &'}, - {'less', '(less %s)'}, - {'more', '(more %s)'} } } end @@ -454,18 +447,18 @@ function how_to_view (filename) viewext = ext if not viewext then print ("texdoc warning: cannot determine file type for\n".. - filename..", using fallback viewer.") - viewext = 'fallback' + filename..", assuming text.") + viewext = 'txt' else if not config['viewer_'..viewext] then print ("texdoc warning: no "..viewext.." viewer found, ".. - "using fallback viewer.\nYou can select you preffered".. + "using text viewer instead.\nYou can select you preffered".. "with the viewer_"..viewext.." variable in texdoc.cnf.") viewext = 'fallback' if not config['viewer_'..viewext] then - print ("texdoc error: fallback viewer not found. ".. + print ("texdoc error: text viewer not found. ".. "Skipping file "..filename..".") - end -- no fallback + end end -- viewer for ext end -- no ext end -- zipped or not -- cgit v1.2.3