diff options
Diffstat (limited to 'Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu')
-rwxr-xr-x | Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu b/Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu index 4f1c26f1a4d..c3d8b12a5e5 100755 --- a/Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu +++ b/Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu @@ -72,6 +72,11 @@ for i=1, #arg do end end +if #files < 1 or #files > 2 then + io.stderr:write('Usage: ps2pdf [options] (input.[e]ps|-) [output.pdf]\n') + os.exit(0) +end + if #files == 1 then if string.find(files[1], '^-$') then outfile='-' @@ -100,11 +105,6 @@ for i=1, #options do command[#command+1]=options[i] end -if #files < 1 or #files > 2 then - io.stderr:write('Usage: ps2pdf [options] (input.[e]ps|-) [output.pdf]\n') - os.exit(0) -end - other_opts={'-c', '.setpdfwrite', '-f', files[1]} for i=1, #other_opts do |