summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-08-01 20:36:49 +0000
committerKarl Berry <karl@freefriends.org>2021-08-01 20:36:49 +0000
commit65317a9dc9ff76702305df532d23e0c514b79ed7 (patch)
treef03e4b744726c4089f688fccf1e0c32aa385afe4 /Master/texmf-dist/tex
parente7ffd7cea985cd4bb7789a935203c73843dcd804 (diff)
iexec (1aug21)
git-svn-id: svn://tug.org/texlive/trunk@60138 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/iexec/iexec.sty9
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/iexec/iexec.sty b/Master/texmf-dist/tex/latex/iexec/iexec.sty
index 34898e324c0..2f8cd15bb0d 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}[2021/07/12 0.3.1 Inputable Shell Executions]
+\ProvidesPackage{iexec}[2021/08/01 0.4.0 Inputable Shell Executions]
\RequirePackage{shellesc}
@@ -30,7 +30,10 @@
\DeclareOptionX{trace}{\tracetrue}
\ProcessOptionsX\relax
-\makeatletter\newcommand\iexec[2][iexec.tmp]{%
+\newcommand\iexec[2][iexec.tmp]{%
+ \ifnum\pdfshellescape=1\else
+ \PackageError{iexec}{You must run latex with --shell-escape option}{}
+ \fi
\begingroup%
\let\%\@percentchar%
\let\\\@backslashchar%
@@ -41,6 +44,6 @@
\endgroup%
\input{#1}%
\iftrace\else\ShellEscape{rm #1}\fi%
-}\makeatother
+}
\endinput