texlive[64707] Master/texmf-dist: iexec (15oct22)

commits+karl at tug.org commits+karl at tug.org
Sat Oct 15 22:16:35 CEST 2022


Revision: 64707
          http://tug.org/svn/texlive?view=revision&revision=64707
Author:   karl
Date:     2022-10-15 22:16:35 +0200 (Sat, 15 Oct 2022)
Log Message:
-----------
iexec (15oct22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/iexec/iexec.pdf
    trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx
    trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty

Modified: trunk/Master/texmf-dist/doc/latex/iexec/iexec.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx	2022-10-15 20:16:00 UTC (rev 64706)
+++ trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx	2022-10-15 20:16:35 UTC (rev 64707)
@@ -50,7 +50,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{iexec}
 %<*package>
-[2022-10-12 0.9.0 Inputable Shell Executions]
+[2022-10-15 0.9.1 Inputable Shell Executions]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -105,8 +105,7 @@
 % Today is \iexec[log]{date +\%e-\%b-\%Y}
 % \end{multicols}
 
-% \DescribeMacro{\iexec}
-% The only command provided by this package is |\iexec| \oarg{options} \marg{cmd}.
+% \DescribeMacro{\iexec} The only command provided by this package is |\iexec| \oarg{options} \marg{cmd}.
 % Its only mandatory argument \meta{cmd} is the command to be executed
 % through the terminal shell (bash, or whatever is set as the default one
 % on your user console).
@@ -118,8 +117,7 @@
 
 % \section{Options}
 
-% \DescribeMacro{quiet}
-% If you don't want the output to be visible,
+% \DescribeMacro{quiet} If you don't want the output to be visible,
 % use |\phantom\{\iexec{...}}|.
 % Otherwise, you can use |quiet| option:
 %\iffalse
@@ -139,8 +137,7 @@
 % In this case, whatever the shell command produces will not be included
 % into the document.
 
-% \DescribeMacro{stdout}
-% The output of your code is saved into the file provided as an
+% \DescribeMacro{stdout} The output of your code is saved into the file provided as an
 % optional argument of |\iexec| (the default value is |iexec.tmp|):
 %\iffalse
 %<*verb>
@@ -157,8 +154,7 @@
 %\fi
 % The tailing part of the command here removes all ends-of-line.
 
-% \DescribeMacro{stderr}
-% The error output of the code is saved into the file provided as an
+% \DescribeMacro{stderr} The error output of the code is saved into the file provided as an
 % optional argument of |\iexec| (by default the error output
 % is streamed into |stdout|):
 %\iffalse
@@ -175,8 +171,7 @@
 %</verb>
 %\fi
 
-% \DescribeMacro{trace}
-% The file specified will be deleted right after its usage. If you don't
+% \DescribeMacro{trace} The file specified will be deleted right after its usage. If you don't
 % want this to happen, use |trace| package option: all files will remain
 % in the directory where they were created.
 % It's possible to turn tracing on globbaly, for the entire document, using
@@ -195,8 +190,7 @@
 %</verb>
 %\fi
 
-% \DescribeMacro{append}
-% The stdout produced will be appended to the file specified:
+% \DescribeMacro{append} The stdout produced will be appended to the file specified:
 %\iffalse
 %<*verb>
 %\fi
@@ -213,8 +207,7 @@
 %</verb>
 %\fi
 
-% \DescribeMacro{log}
-% The stdout produced will be printed in \TeX{} log:
+% \DescribeMacro{log} The stdout produced will be printed in \TeX{} log:
 %\iffalse
 %<*verb>
 %\fi
@@ -229,8 +222,7 @@
 %</verb>
 %\fi
 
-% \DescribeMacro{null}
-% The stdout of the command will be sent to |/dev/null|:
+% \DescribeMacro{null} The stdout of the command will be sent to |/dev/null|:
 %\iffalse
 %<*verb>
 %\fi
@@ -258,30 +250,36 @@
 % \changes{v0.8.0}{2022/10/11}{Bug fixes}
 % \changes{v0.9.0}{2022/10/12}{Additional option 'stderr'}
 
-% First, we include a few packages:
+% First, we include \href{https://ctan.org/pkg/shellesc}{shellesc} package, which
+% we use to execute shell commands:
 %    \begin{macrocode}
 \RequirePackage{shellesc}
-\RequirePackage{pgfkeys}
-\RequirePackage{expl3}
 %    \end{macrocode}
 
 % Then, we parse package options:
 %    \begin{macrocode}
 \RequirePackage{xkeyval}
-\makeatletter\newif\ifiexec at trace
+\makeatletter
+\newif\ifiexec at trace
 \DeclareOptionX{trace}{\iexec at tracetrue}
-\ProcessOptionsX\relax\makeatother
+\ProcessOptionsX\relax
+\makeatother
+%    \end{macrocode}
+
+% Then, we prepare to parse the options of |\iexec| command:
+%    \begin{macrocode}
+\RequirePackage{pgfkeys}
 \makeatletter\pgfkeys{
   /iexec/.is family,
   /iexec,
-  stdout/.estore in = \iexec at stdout,
+  stdout/.store in = \iexec at stdout,
   stdout/.default = iexec.tmp,
-  stderr/.estore in = \iexec at stderr,
-  trace/.estore in = \iexec at traceit,
-  append/.estore in = \iexec at append,
-  log/.estore in = \iexec at log,
-  null/.estore in = \iexec at null,
-  quiet/.estore in = \iexec at quiet,
+  stderr/.store in = \iexec at stderr,
+  trace/.store in = \iexec at traceit,
+  append/.store in = \iexec at append,
+  log/.store in = \iexec at log,
+  null/.store in = \iexec at null,
+  quiet/.store in = \iexec at quiet,
   stdout
 }\makeatother
 %    \end{macrocode}
@@ -290,6 +288,7 @@
 % Then, we define an internal command |\iexec at typeout| for printing the content of a file,
 % as suggested \href{https://tex.stackexchange.com/questions/660808}{here}:
 %    \begin{macrocode}
+\RequirePackage{expl3}
 \makeatletter\ExplSyntaxOn
 \NewDocumentCommand{\iexec at typeout}{m}{
   \iexec_typeout_file:n { #1 }}
@@ -316,10 +315,10 @@
 % First, we verify that |latex| is running with |--shell-escape| option, since without
 % it nothing will work; so, it's better to throw an error earlier than later:
 %    \begin{macrocode}
-    \ifdefined\pdfshellescape\ifnum\pdfshellescape=1\else%
+    \ifnum\ShellEscapeStatus=1\else%
       \PackageError{iexec}{You must run TeX processor with
       --shell-escape option}{}%
-    \fi\fi%
+    \fi%
     \begingroup%
 %    \end{macrocode}
 % Then, start the log from a clean line:

Modified: trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty	2022-10-15 20:16:00 UTC (rev 64706)
+++ trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty	2022-10-15 20:16:35 UTC (rev 64707)
@@ -31,7 +31,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{iexec}
-[2022-10-12 0.9.0 Inputable Shell Executions]
+[2022-10-15 0.9.1 Inputable Shell Executions]
 
 
 
@@ -48,27 +48,30 @@
 
 
 \RequirePackage{shellesc}
-\RequirePackage{pgfkeys}
-\RequirePackage{expl3}
 
 \RequirePackage{xkeyval}
-\makeatletter\newif\ifiexec at trace
+\makeatletter
+\newif\ifiexec at trace
 \DeclareOptionX{trace}{\iexec at tracetrue}
-\ProcessOptionsX\relax\makeatother
+\ProcessOptionsX\relax
+\makeatother
+
+\RequirePackage{pgfkeys}
 \makeatletter\pgfkeys{
   /iexec/.is family,
   /iexec,
-  stdout/.estore in = \iexec at stdout,
+  stdout/.store in = \iexec at stdout,
   stdout/.default = iexec.tmp,
-  stderr/.estore in = \iexec at stderr,
-  trace/.estore in = \iexec at traceit,
-  append/.estore in = \iexec at append,
-  log/.estore in = \iexec at log,
-  null/.estore in = \iexec at null,
-  quiet/.estore in = \iexec at quiet,
+  stderr/.store in = \iexec at stderr,
+  trace/.store in = \iexec at traceit,
+  append/.store in = \iexec at append,
+  log/.store in = \iexec at log,
+  null/.store in = \iexec at null,
+  quiet/.store in = \iexec at quiet,
   stdout
 }\makeatother
 
+\RequirePackage{expl3}
 \makeatletter\ExplSyntaxOn
 \NewDocumentCommand{\iexec at typeout}{m}{
   \iexec_typeout_file:n { #1 }}
@@ -85,10 +88,10 @@
 \makeatletter\newcommand\iexec[2][]{%
   \begingroup
     \pgfqkeys{/iexec}{#1}%
-    \ifdefined\pdfshellescape\ifnum\pdfshellescape=1\else%
+    \ifnum\ShellEscapeStatus=1\else%
       \PackageError{iexec}{You must run TeX processor with
       --shell-escape option}{}%
-    \fi\fi%
+    \fi%
     \begingroup%
       \message{^^J}%
       \let\%\@percentchar%



More information about the tex-live-commits mailing list.