diff options
Diffstat (limited to 'Master/texmf/scripts/tlgs/gswin32/eps2eps.tlu')
-rwxr-xr-x | Master/texmf/scripts/tlgs/gswin32/eps2eps.tlu | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/Master/texmf/scripts/tlgs/gswin32/eps2eps.tlu b/Master/texmf/scripts/tlgs/gswin32/eps2eps.tlu index 0eafca53a09..fe862ec81b5 100755 --- a/Master/texmf/scripts/tlgs/gswin32/eps2eps.tlu +++ b/Master/texmf/scripts/tlgs/gswin32/eps2eps.tlu @@ -27,14 +27,24 @@ else gs='gs' end -command={gs, '-q', '-sDEVICE=epswrite', '-dNOPAUSE', - '-sOutputFile='..arg[#arg], '-dBATCH', '-dSAFER', - '-dDEVICEWIDTH=250000', '-dDEVICEHEIGHT=250000'} +command={gs, '-q', '-sDEVICE=epswrite'} + +if os.type=='unix' then + command[#command+1]='-sstdout=%stderr' +end + + +for _,v in ipairs{'-dNOPAUSE', '-sOutputFile='..arg[#arg], + '-dBATCH', '-dSAFER', '-dDEVICEWIDTH=250000', + '-dDEVICEHEIGHT=250000'} do + command[#command+1]=v +end + files=0 for i=1, #arg do - if not string.find(arg[i], '^-') then + if not string.find(arg[i], '^%-') then files=files+1 end command[#command+1]=arg[i] @@ -42,9 +52,11 @@ end if files < 2 then io.stderr:write('Usage: eps2eps [options] input.eps output.eps\n') - os.exit(0) + os.exit(0) end +command[#command]=nil -- already processed at -sOutputFile + command=fixwin(command) --[[ prepend an additional hyphen to activate this code |