summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/iexec
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-09 21:19:34 +0000
committerKarl Berry <karl@freefriends.org>2022-01-09 21:19:34 +0000
commit2ee93293504145f28f4163f084b29a23a0db3c74 (patch)
treeaedc3f1eb6f3b41619a78457f022190354035371 /Master/texmf-dist/tex/latex/iexec
parentcb174a113ff3add270e32f9f848c608d3695f630 (diff)
iexec (9jan22)
git-svn-id: svn://tug.org/texlive/trunk@61551 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/iexec')
-rw-r--r--Master/texmf-dist/tex/latex/iexec/iexec.sty56
1 files changed, 29 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/latex/iexec/iexec.sty b/Master/texmf-dist/tex/latex/iexec/iexec.sty
index a15cd50942a..e4cd6a57808 100644
--- a/Master/texmf-dist/tex/latex/iexec/iexec.sty
+++ b/Master/texmf-dist/tex/latex/iexec/iexec.sty
@@ -21,7 +21,7 @@
% SOFTWARE.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{iexec}[2022/01/08 0.5.0 Inputable Shell Executions]
+\ProvidesPackage{iexec}[2022/01/09 0.5.1 Inputable Shell Executions]
\RequirePackage{shellesc}
\RequirePackage{pgfkeys}
@@ -42,34 +42,36 @@
}\makeatother
\makeatletter\newcommand\iexec[2][]{%
- \pgfkeys{/iexec, #1}%
- \ifnum\pdfshellescape=1\else%
- \PackageError{iexec}{You must run latex with --shell-escape option}{}%
- \fi%
- \begingroup%
- \let\%\@percentchar%
- \let\\\@backslashchar%
- \let\{\@charlb%
- \let\}\@charrb%
- \ShellEscape{#2 > \iexec@stdout}%
- \message{iexec: [#2 > \iexec@stdout]}%
- \endgroup%
- \ifdefined\iexec@quiet
- \message{iexec: Due to 'quiet' we didn't read the content of '\iexec@stdout'}%
- \else%
- \input{\iexec@stdout}%
- \message{iexec: The content of '\iexec@stdout' was included into the document}%
- \fi%
- \ifiexec@trace%
- \message{iexec: Due to package option 'trace', the file '\iexec@stdout' was not deleted}%
- \else%
- \ifdefined\iexec@traceit%
- \message{iexec: Due to 'trace' option, the file '\iexec@stdout' was not deleted}%
+ \begingroup
+ \pgfqkeys{/iexec}{#1}%
+ \ifnum\pdfshellescape=1\else%
+ \PackageError{iexec}{You must run latex with --shell-escape option}{}%
+ \fi%
+ \begingroup%
+ \let\%\@percentchar%
+ \let\\\@backslashchar%
+ \let\{\@charlb%
+ \let\}\@charrb%
+ \ShellEscape{#2 > \iexec@stdout}%
+ \message{^^Jiexec: [#2 > \iexec@stdout]^^J}%
+ \endgroup%
+ \ifdefined\iexec@quiet
+ \message{^^Jiexec: Due to 'quiet' we didn't read the content of '\iexec@stdout'^^J}%
+ \else%
+ \input{\iexec@stdout}%
+ \message{^^Jiexec: The content of '\iexec@stdout' was included into the document^^J}%
+ \fi%
+ \ifiexec@trace%
+ \message{^^Jiexec: Due to package option 'trace', the file '\iexec@stdout' was not deleted^^J}%
\else%
- \ShellEscape{rm \iexec@stdout}%
- \message{iexec: The file '\iexec@stdout' was deleted}%
+ \ifdefined\iexec@traceit%
+ \message{^^Jiexec: Due to 'trace' option, the file '\iexec@stdout' was not deleted^^J}%
+ \else%
+ \ShellEscape{rm \iexec@stdout}%
+ \message{^^Jiexec: The file '\iexec@stdout' was deleted^^J}%
+ \fi%
\fi%
- \fi%
+ \endgroup
}\makeatother
\endinput