summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/iexec/iexec.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-03 03:01:59 +0000
committerNorbert Preining <norbert@preining.info>2022-01-03 03:01:59 +0000
commit682f8522246e030fbbdea7391dce107754c485d3 (patch)
treed6acc984092fdb35e6525203c6b2ab7ccefaf749 /macros/latex/contrib/iexec/iexec.sty
parent699dd7db121d61d809020fe9dbc0321c3e937745 (diff)
CTAN sync 202201030301
Diffstat (limited to 'macros/latex/contrib/iexec/iexec.sty')
-rw-r--r--macros/latex/contrib/iexec/iexec.sty18
1 files changed, 9 insertions, 9 deletions
diff --git a/macros/latex/contrib/iexec/iexec.sty b/macros/latex/contrib/iexec/iexec.sty
index 2f8cd15bb0..a96f41b004 100644
--- a/macros/latex/contrib/iexec/iexec.sty
+++ b/macros/latex/contrib/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