summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/epspdf/epspdfrc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/epspdf/epspdfrc.rb')
-rwxr-xr-xMaster/texmf-dist/scripts/epspdf/epspdfrc.rb43
1 files changed, 25 insertions, 18 deletions
diff --git a/Master/texmf-dist/scripts/epspdf/epspdfrc.rb b/Master/texmf-dist/scripts/epspdf/epspdfrc.rb
index d9751ff970f..08bcfdb991a 100755
--- a/Master/texmf-dist/scripts/epspdf/epspdfrc.rb
+++ b/Master/texmf-dist/scripts/epspdf/epspdfrc.rb
@@ -1,10 +1,10 @@
-EPVERSION = '0.4.2'
-COPYRIGHT = '2006, 2008, 2009'
+EPVERSION = '0.4.3'
+COPYRIGHT = '2006, 2008, 2009, 2010'
# epspdf conversion utility, configuration module
#####
-# Copyright (C) 2006, 2008, 2009 Siep Kroonenberg
+# Copyright (C) 2006, 2008, 2009, 2010 Siep Kroonenberg
# n dot s dot kroonenberg at rug dot nl
#
# This program is free software, licensed under the GNU GPL, >=2.0.
@@ -88,33 +88,33 @@ def shell_error_string ( e )
returl nil
else
return case e
- when 0: "Out of memory or resources"
+ when 0 then "Out of memory or resources"
#define ERROR_FILE_NOT_FOUND 2L
#define SE_ERR_FNF 2
- when 2: "File not found"
+ when 2 then "File not found"
#define ERROR_PATH_NOT_FOUND 3L
#define SE_ERR_PNF 3
- when 3: "Path not found"
+ when 3 then "Path not found"
#define SE_ERR_ACCESSDENIED 5
- when 5: "Access denied"
+ when 5 then "Access denied"
#define SE_ERR_OOM 8
- when 8: "Not enough memory"
+ when 8 then "Not enough memory"
#define ERROR_BAD_FORMAT 11L
- when 11: "Invalid exe"
+ when 11 then "Invalid exe"
#define SE_ERR_SHARE 26
- when 26: "Sharing violation"
+ when 26 then "Sharing violation"
#define SE_ERR_ASSOCINCOMPLETE 27
- when 27: "Invalid file association"
+ when 27 then "Invalid file association"
#define SE_ERR_DDETIMEOUT 28
- when 28: "DDE timeout"
+ when 28 then "DDE timeout"
#define SE_ERR_DDEFAIL 29
- when 29: "DDE fail"
+ when 29 then "DDE fail"
#define SE_ERR_DDEBUSY 30
- when 30: "DDE busy"
+ when 30 then "DDE busy"
#define SE_ERR_NOASSOC 31
- when 31: "No file association"
+ when 31 then "No file association"
#define SE_ERR_DLLNOTFOUND 32
- when 32: "DLL not found"
+ when 32 then "DLL not found"
else "Unspecified error"
end # case
end # else
@@ -393,6 +393,10 @@ class << $settings
# ghostscript. TeX may also come with pdftops.exe, but pdftops
# would then be on the searchpath and not require special treatment.
+ # Later versions of Ghostscript come with several libraries built-in.
+ # Hopefully, there is no harm in including too many directories
+ # in GS_LIB. Better test this.
+
texbindir = ( ARCH == 'w32' ) ? find_on_path( 'tex' ) : nil
texbindir = short_name( File.dirname( texbindir ) ) if texbindir
@@ -448,8 +452,11 @@ class << $settings
gsroot = texroot + '/tlpkg/tlgs'
this_gs_prog = gsroot + '/bin/gswin32c.exe'
if test( ?f, this_gs_prog )
- self.gs_prog = this_gs_prog
- ENV['GS_LIB'] = "#{gsroot}/lib;#{gsroot}/fonts;#{gsroot}/Resource"
+ self.gs_prog = this_gs_prog
+ ENV['GS_LIB'] = "#{gsroot}/lib;#{gsroot}/fonts"
+ if test( ?d, "#{gsroot}/Resource" )
+ ENV['GS_LIB'] += ";#{gsroot}/Resource"
+ end
else # test for MikTeX hidden ghostscript
# http://blog.miktex.org/post/2005/04/
# Starting-mgsexe-at-the-DOS-Prompt.aspx