summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-12-05 21:22:35 +0000
committerKarl Berry <karl@freefriends.org>2024-12-05 21:22:35 +0000
commit8f18b6523ebb388bef832dfde0ff0258075fae9b (patch)
tree2ff1567ca086e5286f8889e5c1768df588c0e599 /Master/texmf-dist/tex
parenta3aacbeaf94420c79fb19db16c30e0e0bd1dc0ce (diff)
perltex (5dec24)
git-svn-id: svn://tug.org/texlive/trunk@73044 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/perltex/perltex.sty21
1 files changed, 16 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/perltex/perltex.sty b/Master/texmf-dist/tex/latex/perltex/perltex.sty
index 8c9dd7fa3fa..b5636f78c77 100644
--- a/Master/texmf-dist/tex/latex/perltex/perltex.sty
+++ b/Master/texmf-dist/tex/latex/perltex/perltex.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2003-2019 Scott Pakin <scott+pt@pakin.org>
+%% Copyright (C) 2003-2024 Scott Pakin <scott+pt@pakin.org>
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3c of this license
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{perltex}
- [2019/09/14 v2.2 LaTeX macros for use with PerlTeX]
+ [2024/12/03 v2.3 LaTeX macros for use with PerlTeX]
\newif\ifplmac@required
\plmac@requiredtrue
\DeclareOption{optional}{\plmac@requiredfalse}
@@ -206,15 +206,26 @@
}%
\plmac@run@code
}
+\newread\plmac@infile
+\newcommand{\plmac@IfFileExists}[3]{%
+ \openin\plmac@infile=#1 %
+ \ifeof\plmac@infile
+ \def\plmac@next{#3}%
+ \else
+ \closein\plmac@infile
+ \def\plmac@next{#2}%
+ \fi
+ \plmac@next
+}
\newif\ifplmac@file@exists
\newcommand{\plmac@await@existence}[1]{%
\begin{lrbox}{\@tempboxa}%
\input\plmac@pipe
\end{lrbox}%
\loop
- \IfFileExists{#1}%
- {\plmac@file@existstrue}%
- {\plmac@file@existsfalse}%
+ \plmac@IfFileExists{#1}%
+ {\plmac@file@existstrue}%
+ {\plmac@file@existsfalse}%
\ifplmac@file@exists
\else
\repeat