diff options
author | Karl Berry <karl@freefriends.org> | 2022-01-02 21:05:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-01-02 21:05:19 +0000 |
commit | 62cf724cffab11c1c202bde24cb9ead509cad04c (patch) | |
tree | 972a91074602d50ed3f573a40083809f08621acc /Master/texmf-dist/tex | |
parent | e2b72dde0c837de72d91f1f5a39e9a2ae677ef82 (diff) |
iexec (2jan22)
git-svn-id: svn://tug.org/texlive/trunk@61472 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/iexec/iexec.sty | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/iexec/iexec.sty b/Master/texmf-dist/tex/latex/iexec/iexec.sty index 2f8cd15bb0d..a96f41b0046 100644 --- a/Master/texmf-dist/tex/latex/iexec/iexec.sty +++ b/Master/texmf-dist/tex/latex/iexec/iexec.sty @@ -1,6 +1,6 @@ % (The MIT License) % -% Copyright (c) 2021 Yegor Bugayenko +% Copyright (c) 2021-2022 Yegor Bugayenko % % Permission is hereby granted, free of charge, to any person obtaining a copy % of this software and associated documentation files (the 'Software'), to deal @@ -21,16 +21,16 @@ % SOFTWARE. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{iexec}[2021/08/01 0.4.0 Inputable Shell Executions] +\ProvidesPackage{iexec}[2022/01/02 0.4.1 Inputable Shell Executions] \RequirePackage{shellesc} \RequirePackage{xkeyval} -\newif\iftrace -\DeclareOptionX{trace}{\tracetrue} -\ProcessOptionsX\relax +\makeatletter\newif\ifiexec@trace +\DeclareOptionX{trace}{\iexec@tracetrue} +\ProcessOptionsX\relax\makeatother -\newcommand\iexec[2][iexec.tmp]{% +\makeatletter\newcommand\iexec[2][iexec.tmp]{% \ifnum\pdfshellescape=1\else \PackageError{iexec}{You must run latex with --shell-escape option}{} \fi @@ -40,10 +40,10 @@ \let\{\@charlb% \let\}\@charrb% \ShellEscape{#2 > #1}% - \message{iexec executed shell command: [#2 > #1]}% + \message{iexec: [#2 > #1]}% \endgroup% \input{#1}% - \iftrace\else\ShellEscape{rm #1}\fi% -} + \ifiexec@trace\else\ShellEscape{rm #1}\fi% +}\makeatother \endinput |