diff options
Diffstat (limited to 'Master/texmf-dist/scripts/epspdf/epspdfrc.rb')
-rwxr-xr-x | Master/texmf-dist/scripts/epspdf/epspdfrc.rb | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Master/texmf-dist/scripts/epspdf/epspdfrc.rb b/Master/texmf-dist/scripts/epspdf/epspdfrc.rb index f75d65b5339..aa64309a822 100755 --- a/Master/texmf-dist/scripts/epspdf/epspdfrc.rb +++ b/Master/texmf-dist/scripts/epspdf/epspdfrc.rb @@ -424,20 +424,22 @@ class << $settings self.pdftops_prog = xpdf_version( 'pdftops' ) ? 'pdftops' : nil # viewers - vw = %w{ gpdf xpdf acroread evince ggv gv kghostview } - vw.delete_if { |x| not is_a_program( x ) } - vw = nil if vw.empty? - self.pdf_viewers = vw - self.pdf_viewer = vw ? vw[0] : nil - if vw - vw2 = vw.dup # copy the elements rather than the array ref - [ 'gpdf', 'xpdf', 'acroread' ].each { |pg| - vw2.delete( pg ) if vw2.index( pg ) - } - vw2 = nil if vw2.empty? - self.ps_viewers = vw2 - self.ps_viewer = vw2 ? vw2[ 0 ] : nil - end # if vw + if ARCH == 'unix' + vw = %w{ gpdf xpdf acroread evince ggv gv kghostview } + vw.delete_if { |x| not is_a_program( x ) } + vw = nil if vw.empty? + self.pdf_viewers = vw + self.pdf_viewer = vw ? vw[0] : nil + if vw + vw2 = vw.dup # copy the elements rather than the array ref + [ 'gpdf', 'xpdf', 'acroread' ].each { |pg| + vw2.delete( pg ) if vw2.index( pg ) + } + vw2 = nil if vw2.empty? + self.ps_viewers = vw2 + self.ps_viewer = vw2 ? vw2[ 0 ] : nil + end # if vw + end # if unix end # case # built-in defaults already set during initialization of $settings |