summaryrefslogtreecommitdiff
path: root/Master/texmf/scripts/tlgs
diff options
context:
space:
mode:
authorReinhard Kotucha <reinhard.kotucha@web.de>2011-02-21 17:24:42 +0000
committerReinhard Kotucha <reinhard.kotucha@web.de>2011-02-21 17:24:42 +0000
commit88974dfbf7403dd682b0a5effdf6fe2578100c17 (patch)
tree825cfea99007a8c623dd33ef8a84dcac041ffb0f /Master/texmf/scripts/tlgs
parent277bc6c467e208e1150239c114040cce58fb80b3 (diff)
tlgs/gswin32/ps2pdf*: Fixed bug reported by Dan Luecking
git-svn-id: svn://tug.org/texlive/trunk@21490 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts/tlgs')
-rwxr-xr-xMaster/texmf/scripts/tlgs/gswin32/ps2pdf.tlu11
-rwxr-xr-xMaster/texmf/scripts/tlgs/gswin32/ps2pdf12.tlu11
-rwxr-xr-xMaster/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu11
-rwxr-xr-xMaster/texmf/scripts/tlgs/gswin32/ps2pdf14.tlu11
4 files changed, 24 insertions, 20 deletions
diff --git a/Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu b/Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu
index 68090e4eb3c..5ee91548751 100755
--- a/Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu
+++ b/Master/texmf/scripts/tlgs/gswin32/ps2pdf.tlu
@@ -22,7 +22,11 @@ function fixwin (args_unix)
end
function filename (file)
- return string.match(file, '.*[/\\](.*)$')
+ if string.find(file, '[/\\]') then
+ return string.match(file, '.*[/\\](.*)$')
+ else
+ return file
+ end
end
function basename (file)
@@ -71,6 +75,7 @@ if #files == 1 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
@@ -89,10 +94,6 @@ end
command[#command+1]='-sOutputFile='..outfile
-for i=1, #options do
- command[#command+1]=options[i]
-end
-
other_opts={'-c', '.setpdfwrite', '-f', files[1]}
for i=1, #other_opts do
diff --git a/Master/texmf/scripts/tlgs/gswin32/ps2pdf12.tlu b/Master/texmf/scripts/tlgs/gswin32/ps2pdf12.tlu
index 68090e4eb3c..5ee91548751 100755
--- a/Master/texmf/scripts/tlgs/gswin32/ps2pdf12.tlu
+++ b/Master/texmf/scripts/tlgs/gswin32/ps2pdf12.tlu
@@ -22,7 +22,11 @@ function fixwin (args_unix)
end
function filename (file)
- return string.match(file, '.*[/\\](.*)$')
+ if string.find(file, '[/\\]') then
+ return string.match(file, '.*[/\\](.*)$')
+ else
+ return file
+ end
end
function basename (file)
@@ -71,6 +75,7 @@ if #files == 1 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
@@ -89,10 +94,6 @@ end
command[#command+1]='-sOutputFile='..outfile
-for i=1, #options do
- command[#command+1]=options[i]
-end
-
other_opts={'-c', '.setpdfwrite', '-f', files[1]}
for i=1, #other_opts do
diff --git a/Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu b/Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu
index 68090e4eb3c..5ee91548751 100755
--- a/Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu
+++ b/Master/texmf/scripts/tlgs/gswin32/ps2pdf13.tlu
@@ -22,7 +22,11 @@ function fixwin (args_unix)
end
function filename (file)
- return string.match(file, '.*[/\\](.*)$')
+ if string.find(file, '[/\\]') then
+ return string.match(file, '.*[/\\](.*)$')
+ else
+ return file
+ end
end
function basename (file)
@@ -71,6 +75,7 @@ if #files == 1 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
@@ -89,10 +94,6 @@ end
command[#command+1]='-sOutputFile='..outfile
-for i=1, #options do
- command[#command+1]=options[i]
-end
-
other_opts={'-c', '.setpdfwrite', '-f', files[1]}
for i=1, #other_opts do
diff --git a/Master/texmf/scripts/tlgs/gswin32/ps2pdf14.tlu b/Master/texmf/scripts/tlgs/gswin32/ps2pdf14.tlu
index 68090e4eb3c..5ee91548751 100755
--- a/Master/texmf/scripts/tlgs/gswin32/ps2pdf14.tlu
+++ b/Master/texmf/scripts/tlgs/gswin32/ps2pdf14.tlu
@@ -22,7 +22,11 @@ function fixwin (args_unix)
end
function filename (file)
- return string.match(file, '.*[/\\](.*)$')
+ if string.find(file, '[/\\]') then
+ return string.match(file, '.*[/\\](.*)$')
+ else
+ return file
+ end
end
function basename (file)
@@ -71,6 +75,7 @@ if #files == 1 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
@@ -89,10 +94,6 @@ end
command[#command+1]='-sOutputFile='..outfile
-for i=1, #options do
- command[#command+1]=options[i]
-end
-
other_opts={'-c', '.setpdfwrite', '-f', files[1]}
for i=1, #other_opts do