texlive[69230] Master/texmf-dist: iexec (28dec23)
commits+karl at tug.org
commits+karl at tug.org
Fri Dec 29 00:04:07 CET 2023
Revision: 69230
https://tug.org/svn/texlive?view=revision&revision=69230
Author: karl
Date: 2023-12-29 00:04:07 +0100 (Fri, 29 Dec 2023)
Log Message:
-----------
iexec (28dec23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/iexec/LICENSE.txt
trunk/Master/texmf-dist/doc/latex/iexec/README.md
trunk/Master/texmf-dist/doc/latex/iexec/iexec.pdf
trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx
trunk/Master/texmf-dist/source/latex/iexec/iexec.ins
trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty
Modified: trunk/Master/texmf-dist/doc/latex/iexec/LICENSE.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/iexec/LICENSE.txt 2023-12-28 23:03:57 UTC (rev 69229)
+++ trunk/Master/texmf-dist/doc/latex/iexec/LICENSE.txt 2023-12-28 23:04:07 UTC (rev 69230)
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2021-2022 Yegor Bugayenko
+Copyright (c) 2021-2023 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
Modified: trunk/Master/texmf-dist/doc/latex/iexec/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/iexec/README.md 2023-12-28 23:03:57 UTC (rev 69229)
+++ trunk/Master/texmf-dist/doc/latex/iexec/README.md 2023-12-28 23:04:07 UTC (rev 69230)
@@ -12,13 +12,14 @@
```tex
\documentclass{article}
-\usepackage{iexec}
+\usepackage[unskip]{iexec}
\begin{document}
-Today is \iexec{date +\%e-\%b-\%Y | tr -d '\\n'}.
+Today is \iexec{date +\%e-\%b-\%Y}.
\end{document}
```
-Otherwise, you can download [`iexec.sty`](https://raw.githubusercontent.com/yegor256/iexec/gh-pages/iexec/iexec.sty) and add to your project.
+Otherwise, you can download
+[`iexec.sty`](https://yegor256.github.io/iexec/iexec.sty) and add to your project.
The full example and all commands are available in the
[`iexec.pdf`](https://ftp.agdsn.de/pub/mirrors/latex/dante/macros/latex/contrib/iexec/iexec.pdf) file.
Modified: trunk/Master/texmf-dist/doc/latex/iexec/iexec.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx 2023-12-28 23:03:57 UTC (rev 69229)
+++ trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx 2023-12-28 23:04:07 UTC (rev 69230)
@@ -1,7 +1,7 @@
% \iffalse meta-comment
% (The MIT License)
%
-% Copyright (c) 2021-2022 Yegor Bugayenko
+% Copyright (c) 2021-2023 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
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{iexec}
%<*package>
-[2023-10-12 0.12.0 Inputable Shell Executions]
+[2023-12-28 0.13.0 Inputable Shell Executions]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -109,6 +109,10 @@
% in order to let \href{https://ctan.org/pkg/shellesc}{shellesc}
% execute your shell command.
+% It is important to remember that \LaTeX{} always uses ``|/bin/sh|'' shell.
+% This can't be changed,
+% as \href{https://tex.stackexchange.com/questions/698312}{explained here}.
+
% \section{Options}
% \DescribeMacro{quiet}
@@ -396,20 +400,30 @@
% \changes{0.11.2}{2022/10/25}{If execution fails, we print the content of ``\texttt{stdout}'' anyway, even if the ``\texttt{log}'' is not turned on.}
% \begin{macrocode}
\ifdefined\iexec at null\else%
- \ifdefined\iexec at log%
- \message{iexec: This is the content of '\iexec at stdout':^^J}%
- \iexec at typeout{\iexec at stdout}%
- \message{<EOF>^^J}%
- \else%
- \ifnum\iexec at code=0\else%
- \ifdefined\iexec at ignore\else%
- \message{iexec: See the content of '\iexec at stdout'
- after failure:^^J}%
- \iexec at typeout{\iexec at stdout}%
- \message{<EOF>^^J}%
+ \IfFileExists
+ {\iexec at stdout}
+ {}
+ {\PackageError{iexec}{The "\iexec at stdout" file is absent
+ after processing, looks like some internal error}{}}%
+ \ifdefined\iexec at log%
+ \message{iexec: This is the content of '\iexec at stdout':^^J}%
+ \IfFileExists
+ {\iexec at stdout}
+ {\iexec at typeout{\iexec at stdout}}
+ {\PackageError{iexec}{The "\iexec at stdout" file is absent
+ after processing, looks like some internal error}{}}%
+ \message{<EOF>^^J}%
+ \else%
+ \ifnum\iexec at code=0\else%
+ \ifdefined\iexec at ignore\else%
+ \message{iexec: See the content of '\iexec at stdout'
+ after failure:^^J}%
+ \iexec at typeout{\iexec at stdout}%
+ \message{<EOF>^^J}%
+ \fi%
\fi%
\fi%
- \fi\fi%
+ \fi%
% \end{macrocode}
% Then, we check whether it's zero or not (if not zero, we either print a message or fail the build, depending on the presence of |ignore| option):
% \begin{macrocode}
Modified: trunk/Master/texmf-dist/source/latex/iexec/iexec.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/iexec/iexec.ins 2023-12-28 23:03:57 UTC (rev 69229)
+++ trunk/Master/texmf-dist/source/latex/iexec/iexec.ins 2023-12-28 23:04:07 UTC (rev 69230)
@@ -1,6 +1,6 @@
%% (The MIT License)
%%
-%% Copyright (c) 2021-2022 Yegor Bugayenko
+%% Copyright (c) 2021-2023 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
@@ -26,7 +26,7 @@
\preamble
(The MIT License)
-Copyright (c) 2021-2022 Yegor Bugayenko
+Copyright (c) 2021-2023 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
Modified: trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty 2023-12-28 23:03:57 UTC (rev 69229)
+++ trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty 2023-12-28 23:04:07 UTC (rev 69230)
@@ -7,7 +7,7 @@
%% iexec.dtx (with options: `package')
%% (The MIT License)
%%
-%% Copyright (c) 2021-2022 Yegor Bugayenko
+%% Copyright (c) 2021-2023 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
@@ -31,7 +31,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{iexec}
-[2023-10-12 0.12.0 Inputable Shell Executions]
+[2023-12-28 0.13.0 Inputable Shell Executions]
@@ -49,6 +49,7 @@
+
\RequirePackage{shellesc}
\RequirePackage{xkeyval}
@@ -122,20 +123,30 @@
\read\iexec at exitfile to \iexec at code%
\immediate\closein\iexec at exitfile%
\ifdefined\iexec at null\else%
- \ifdefined\iexec at log%
- \message{iexec: This is the content of '\iexec at stdout':^^J}%
- \iexec at typeout{\iexec at stdout}%
- \message{<EOF>^^J}%
- \else%
- \ifnum\iexec at code=0\else%
- \ifdefined\iexec at ignore\else%
- \message{iexec: See the content of '\iexec at stdout'
- after failure:^^J}%
- \iexec at typeout{\iexec at stdout}%
- \message{<EOF>^^J}%
+ \IfFileExists
+ {\iexec at stdout}
+ {}
+ {\PackageError{iexec}{The "\iexec at stdout" file is absent
+ after processing, looks like some internal error}{}}%
+ \ifdefined\iexec at log%
+ \message{iexec: This is the content of '\iexec at stdout':^^J}%
+ \IfFileExists
+ {\iexec at stdout}
+ {\iexec at typeout{\iexec at stdout}}
+ {\PackageError{iexec}{The "\iexec at stdout" file is absent
+ after processing, looks like some internal error}{}}%
+ \message{<EOF>^^J}%
+ \else%
+ \ifnum\iexec at code=0\else%
+ \ifdefined\iexec at ignore\else%
+ \message{iexec: See the content of '\iexec at stdout'
+ after failure:^^J}%
+ \iexec at typeout{\iexec at stdout}%
+ \message{<EOF>^^J}%
+ \fi%
\fi%
\fi%
- \fi\fi%
+ \fi%
\ifnum\iexec at code=0\else%
\ifdefined\iexec at ignore%
\ifdefined\iexec at log%
More information about the tex-live-commits
mailing list.