diff options
author | Reinhard Kotucha <reinhard.kotucha@web.de> | 2013-05-15 18:47:52 +0000 |
---|---|---|
committer | Reinhard Kotucha <reinhard.kotucha@web.de> | 2013-05-15 18:47:52 +0000 |
commit | 25eda080b3772d73b8d3dbccc4f7bd687f236170 (patch) | |
tree | 534a091c9506cde8846e3594f431c4e187ae357b /Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu | |
parent | 6fb40684f03dac9594f2de246b4fbbeec21e565d (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/ps2pdf12.tlu')
-rwxr-xr-x | Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu | 7 |
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 |