From 2ee93293504145f28f4163f084b29a23a0db3c74 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 9 Jan 2022 21:19:34 +0000 Subject: iexec (9jan22) git-svn-id: svn://tug.org/texlive/trunk@61551 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/iexec/iexec.sty | 56 +++++++++++++++-------------- 1 file changed, 29 insertions(+), 27 deletions(-) (limited to 'Master/texmf-dist/tex/latex/iexec') 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 -- cgit v1.2.3