diff options
Diffstat (limited to 'Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu')
-rwxr-xr-x | Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu b/Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu index 68090e4eb3c..5ee91548751 100755 --- a/Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu +++ b/Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu @@ -22,7 +22,11 @@ function fixwin (args_unix) end function filename (file) - return string.match(file, '.*[/\\](.*)$') + if string.find(file, '[/\\]') then + return string.match(file, '.*[/\\](.*)$') + else + return file + end end function basename (file) @@ -71,6 +75,7 @@ if #files == 1 then elseif string.find(filename(files[1]), '\.[eE]?[pP][sS]$') then outfile=basename(files[1])..'.pdf' else + print ('xxx:'..files[1]) outfile=filename(files[1])..'.pdf' end else @@ -89,10 +94,6 @@ end command[#command+1]='-sOutputFile='..outfile -for i=1, #options do - command[#command+1]=options[i] -end - other_opts={'-c', '.setpdfwrite', '-f', files[1]} for i=1, #other_opts do |