From 025f7bfee79d7817a876831bb19f34a2dfb1b2e2 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 19 Nov 2019 03:02:21 +0000
Subject: CTAN sync 201911190302

---
 macros/latex-dev/base/ltdirchk.dtx | 45 +++++++++++++++++++++++++++++++-------
 1 file changed, 37 insertions(+), 8 deletions(-)

(limited to 'macros/latex-dev/base/ltdirchk.dtx')

diff --git a/macros/latex-dev/base/ltdirchk.dtx b/macros/latex-dev/base/ltdirchk.dtx
index b9db177f19..744759f317 100644
--- a/macros/latex-dev/base/ltdirchk.dtx
+++ b/macros/latex-dev/base/ltdirchk.dtx
@@ -37,7 +37,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltdirchk.dtx}
-             [2016/10/15 v1.2b LaTeX Kernel (System Dependent Parts)]
+             [2019/11/01 v1.3a LaTeX Kernel (System Dependent Parts)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltdirchk.dtx}
@@ -918,14 +918,43 @@
 %
 % |\filename@simple| is used by all three versions.
 % Finally we can split off the extension.
+% \changes{v1.3a}{2019/11/01}
+%         {take last . not first}
 %    \begin{macrocode}
-  \def\filename@simple#1.#2\\{%
-    \ifx\\#2\\%
-       \let\filename@ext\relax
-    \else
-       \edef\filename@ext{\filename@dot#2\\}%
-    \fi
-    \edef\filename@base{#1}}
+%</dircheck>
+%<*dircheck,latexrelease>
+%<latexrelease>\IncludeInRelease{2019/10/01}{\filename@simple}
+%<latexrelease>                             {Final dot for extension}%
+\def\filename@simple#1.#2\\{%
+  \ifx\\#2\\%
+    \let\filename@ext\relax
+    \edef\filename@base{#1}%
+  \else
+    \filename@dots{#1}#2\\%
+  \fi}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
+\def\filename@dots#1#2.#3\\{%
+  \ifx\\#3\\%
+    \def\filename@ext{#2}%
+    \edef\filename@base{#1}%
+  \else
+    \filename@dots{#1.#2}#3\\%
+  \fi}
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{0000/00/00}{\filename@simple}
+%<latexrelease>                             {Final dot for extension}%
+%<latexrelease>  \def\filename@simple#1.#2\\{%
+%<latexrelease>    \ifx\\#2\\%
+%<latexrelease>       \let\filename@ext\relax
+%<latexrelease>    \else
+%<latexrelease>       \edef\filename@ext{\filename@dot#2\\}%
+%<latexrelease>    \fi
+%<latexrelease>    \edef\filename@base{#1}}
+%<latexrelease>\EndIncludeInRelease
+%</dircheck,latexrelease>
+%<*dircheck>
 %    \end{macrocode}
 %
 % Remove a final dot, added earlier.
-- 
cgit v1.2.3

