summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu
diff options
context:
space:
mode:
authorReinhard Kotucha <reinhard.kotucha@web.de>2013-05-15 18:47:52 +0000
committerReinhard Kotucha <reinhard.kotucha@web.de>2013-05-15 18:47:52 +0000
commit25eda080b3772d73b8d3dbccc4f7bd687f236170 (patch)
tree534a091c9506cde8846e3594f431c4e187ae357b /Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu
parent6fb40684f03dac9594f2de246b4fbbeec21e565d (diff)
Fixed escape char, reported by Dohyun Kim
git-svn-id: svn://tug.org/texlive/trunk@30483 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu')
-rwxr-xr-xMaster/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu7
1 files changed, 3 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu
index 5ee91548751..7cb82173cfa 100755
--- a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu
+++ b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.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