summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx53
1 files changed, 37 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx b/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx
index 208f51ff6b2..a62c1f11327 100644
--- a/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx
@@ -83,7 +83,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: pdftexcmds 2011/04/10 v0.14 Utilities of pdfTeX for LuaTeX (HO)}
+\Msg{* Package: pdftexcmds 2011/04/16 v0.15 Utilities of pdfTeX for LuaTeX (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -175,7 +175,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{pdftexcmds.drv}%
- [2011/04/10 v0.14 Utilities of pdfTeX for LuaTeX (HO)]%
+ [2011/04/16 v0.15 Utilities of pdfTeX for LuaTeX (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2011/02/04]
\usepackage{paralist}
@@ -185,7 +185,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{1618}
+% \CheckSum{1622}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -206,7 +206,7 @@ and the derived files
% \GetFileInfo{pdftexcmds.drv}
%
% \title{The \xpackage{pdftexcmds} package}
-% \date{2011/04/10 v0.14}
+% \date{2011/04/16 v0.15}
% \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}}
%
% \maketitle
@@ -367,6 +367,11 @@ and the derived files
% configuration option. In \hologo{LuaTeX} option |--safer| disables
% the execution of external commands.
%
+% In \hologo{LuaTeX} before 0.70.0 \cs{pdf@shellescape} is not
+% available due to a bug in |os.execute()|. The argumentless form
+% crashes in some circumstances with segmentation fault.
+% It is fixed in version 0.70.0, revision 4167 of \hologo{LuaTeX}.
+%
% Hints for usage:
% \begin{itemize}
% \item \cs{pdf@shellescape} might be a numerical constant,
@@ -529,7 +534,7 @@ and the derived files
\fi
\expandafter\x\csname ver@pdftexcmds.sty\endcsname
\ProvidesPackage{pdftexcmds}%
- [2011/04/10 v0.14 Utilities of pdfTeX for LuaTeX (HO)]%
+ [2011/04/16 v0.15 Utilities of pdfTeX for LuaTeX (HO)]%
% \end{macrocode}
%
% \subsection{Catcodes}
@@ -1040,7 +1045,7 @@ and the derived files
require("oberdiek.pdftexcmds")%
}
\begingroup
- \def\x{2011/04/10 v0.14}%
+ \def\x{2011/04/16 v0.15}%
\ltx@onelevel@sanitize\x
\edef\y{%
\pdftexcmds@directlua{%
@@ -1282,11 +1287,14 @@ and the derived files
%
% \begin{macro}{\pdf@shellescape}
% \begin{macrocode}
-\def\pdf@shellescape{%
- \directlua0{%
- oberdiek.pdftexcmds.shellescape()%
+\ifnum\luatexversion<70 %
+\else
+ \def\pdf@shellescape{%
+ \directlua0{%
+ oberdiek.pdftexcmds.shellescape()%
+ }%
}%
-}
+\fi
% \end{macrocode}
% \end{macro}
%
@@ -1361,7 +1369,7 @@ and the derived files
module("oberdiek.pdftexcmds", package.seeall)
local systemexitstatus
function getversion()
- tex.write("2011/04/10 v0.14")
+ tex.write("2011/04/16 v0.15")
end
function strcmp(A, B)
if A == B then
@@ -1618,14 +1626,20 @@ function filemdfivesum(filename)
end
function shellescape()
if os.execute then
- local result = os.execute()
- if result == 0 then
- tex.write("0")
+ if status
+ and status.luatex_version
+ and status.luatex_version >= 70 then
+ tex.write(os.execute())
else
- if result == nil then
+ local result = os.execute()
+ if result == 0 then
tex.write("0")
else
- tex.write("1")
+ if result == nil then
+ tex.write("0")
+ else
+ tex.write("1")
+ end
end
end
else
@@ -2318,6 +2332,13 @@ end
% Patch for bug in \hologo{LuaTeX} between 0.40.6 and 0.65 that
% is fixed in revision 4096.
% \end{Version}
+% \begin{Version}{2011/04/16 v0.15}
+% \item
+% \hologo{LuaTeX}: \cs{pdf@shellescape} is only supported
+% for version 0.70.0 and higher due to a bug, \texttt{os.execute()}
+% crashes in some circumstances. Fixed in \hologo{LuaTeX}
+% beta-0.70.0, revision 4167.
+% \end{Version}
% \end{History}
%
% \PrintIndex