summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu')
-rwxr-xr-xMaster/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu7
1 files changed, 3 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu
index 5ee91548751..a35e3b0912a 100755
--- a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu
+++ b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu
@@ -30,7 +30,7 @@ function filename (file)
end
function basename (file)
- return string.match(filename(file), '(.*)[\.].*')
+ return string.match(filename(file), '(.*)[%.].*')
end
if os.type == 'windows' then
@@ -66,16 +66,15 @@ end
if #files < 1 or #files > 2 then
io.stderr:write('Usage: ps2pdf [options] (input.[e]ps|-) [output.pdf]\n')
- os.exit(0)
+ os.exit(1)
end
if #files == 1 then
if files[1] == '-' then
outfile='-'
- elseif string.find(filename(files[1]), '\.[eE]?[pP][sS]$') 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