summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-22 23:36:31 +0000
committerKarl Berry <karl@freefriends.org>2011-04-22 23:36:31 +0000
commitcd62c624e149e4c29e0e7aa29c016ae8b45cf086 (patch)
tree1279b8e45d65cd3fd93975997a8d3db844722b28 /Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx
parent2be6eaeb8090315538ca23046d0fbc8ffce6acdd (diff)
oberdiek (22apr11)
git-svn-id: svn://tug.org/texlive/trunk@22162 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx50
1 files changed, 37 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx b/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx
index 905f819b28b..18aebaabbdb 100644
--- a/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
% File: pdftexcmds.dtx
-% Version: 2011/04/16 v0.15
+% Version: 2011/04/22 v0.16
%
% Copyright (C) 2007, 2009-2011 by
% Heiko Oberdiek <heiko.oberdiek at googlemail.com>
@@ -86,7 +86,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: pdftexcmds 2011/04/16 v0.15 Utilities of pdfTeX for LuaTeX (HO)}
+\Msg{* Package: pdftexcmds 2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -98,7 +98,7 @@
This is a generated file.
Project: pdftexcmds
-Version: 2011/04/16 v0.15
+Version: 2011/04/22 v0.16
Copyright (C) 2007, 2009-2011 by
Heiko Oberdiek <heiko.oberdiek at googlemail.com>
@@ -181,7 +181,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{pdftexcmds.drv}%
- [2011/04/16 v0.15 Utilities of pdfTeX for LuaTeX (HO)]%
+ [2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2011/02/04]
\usepackage{paralist}
@@ -191,7 +191,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{1622}
+% \CheckSum{1647}
%
% \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
@@ -212,7 +212,7 @@ and the derived files
% \GetFileInfo{pdftexcmds.drv}
%
% \title{The \xpackage{pdftexcmds} package}
-% \date{2011/04/16 v0.15}
+% \date{2011/04/22 v0.16}
% \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}}
%
% \maketitle
@@ -373,10 +373,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
+% In \hologo{LuaTeX} before 0.68.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}.
+% (It is fixed in version 0.70.0, revision 4167 of \hologo{LuaTeX}.
+% and packported to some version of 0.67.0).
%
% Hints for usage:
% \begin{itemize}
@@ -540,7 +541,7 @@ and the derived files
\fi
\expandafter\x\csname ver@pdftexcmds.sty\endcsname
\ProvidesPackage{pdftexcmds}%
- [2011/04/16 v0.15 Utilities of pdfTeX for LuaTeX (HO)]%
+ [2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)]%
% \end{macrocode}
%
% \subsection{Catcodes}
@@ -1051,7 +1052,7 @@ and the derived files
require("oberdiek.pdftexcmds")%
}
\begingroup
- \def\x{2011/04/16 v0.15}%
+ \def\x{2011/04/22 v0.16}%
\ltx@onelevel@sanitize\x
\edef\y{%
\pdftexcmds@directlua{%
@@ -1291,8 +1292,9 @@ and the derived files
% \end{macro}
%
% \begin{macro}{\pdf@shellescape}
+% Caution: Catcode of digit zero might be `ignore'.
% \begin{macrocode}
-\ifnum\luatexversion<70 %
+\ifnum\luatexversion<68 %
\else
\def\pdf@shellescape{%
\directlua0{%
@@ -1374,7 +1376,7 @@ and the derived files
module("oberdiek.pdftexcmds", package.seeall)
local systemexitstatus
function getversion()
- tex.write("2011/04/16 v0.15")
+ tex.write("2011/04/22 v0.16")
end
function strcmp(A, B)
if A == B then
@@ -1633,7 +1635,7 @@ function shellescape()
if os.execute then
if status
and status.luatex_version
- and status.luatex_version >= 70 then
+ and status.luatex_version >= 68 then
tex.write(os.execute())
else
local result = os.execute()
@@ -1888,6 +1890,21 @@ end
\catcode`\@=11 %
\input pdftexcmds.sty\relax
\def\msg#{\immediate\write16}
+\def\MaybeEnd{}
+\ifx\luatexversion\UnDeFiNeD
+\else
+ \ifnum\luatexversion<68 %
+ \ifx\pdf@shellescape\@undefined
+ \msg{SHELL=U}%
+ \msg{OK (LuaTeX < 0.68)}%
+ \else
+ \msg{SHELL=defined}%
+ \errmessage{Failed (LuaTeX < 0.68)}%
+ \fi
+ \def\MaybeEnd{\csname @@end\endcsname\end}%
+ \fi
+\fi
+\MaybeEnd
\ifx\pdf@shellescape\@undefined
\msg{SHELL=U}%
\else
@@ -2344,6 +2361,13 @@ end
% crashes in some circumstances. Fixed in \hologo{LuaTeX}
% beta-0.70.0, revision 4167.
% \end{Version}
+% \begin{Version}{2011/04/22 v0.16}
+% \item
+% Previous fix was not working due to a wrong catcode of digit
+% zero (due to easily support the old \cs{directlua0}).
+% The version border is lowered to 0.68, because some
+% beta-0.67.0 seems also to work.
+% \end{Version}
% \end{History}
%
% \PrintIndex