[latex3-commits] [l3svn] 03/10: l3build: Remove undocumented meta-data commnds

noreply at latex-project.org noreply at latex-project.org
Thu Jun 22 16:53:25 CEST 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit 7e4121b48a03782c7445eb065c26b58a4803b401
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Jun 22 13:51:14 2017 +0100

    l3build: Remove undocumented meta-data commnds
    
    These are largely for LaTeX2e kernel work so are being transfered to the .cfg file
    there.
    
    The \AUTHOR command is widely used by us so is retained in the .cfg file here.
---
 l3build/l3build.dtx                      |   76 ------------------------------
 l3build/testfiles-plain/plain-pdftex.lvt |    3 --
 l3build/testfiles/00-test-1.luatex.tlg   |    4 --
 l3build/testfiles/00-test-1.lvt          |    4 --
 l3build/testfiles/00-test-1.tlg          |    4 --
 support/regression-test.cfg              |    3 ++
 6 files changed, 3 insertions(+), 91 deletions(-)

diff --git a/l3build/l3build.dtx b/l3build/l3build.dtx
index 52ceecb..7df5461 100644
--- a/l3build/l3build.dtx
+++ b/l3build/l3build.dtx
@@ -1404,88 +1404,12 @@
   \let\@@end\END
 \fi
 %    \end{macrocode}
-% After the |\START| should come declarations of the format and style
-% options being used.
-%    \begin{macrocode}
-\def\FORMAT#1{\LONGTYPEOUT{Format: #1}%
-  \def\@tempa{#1}\ifx\@tempa\@EJ\else
-   \OMIT\TYPE{WARNING: Declared format #1,^^JActual format \@EJ}\TIMO\fi}
-%    \end{macrocode}
-% The old version got this information from everyjob,
-% but that does not work with \LaTeXe\ as |\everyjob| is cleared.
-%    \begin{macrocode}
-\edef\@EJ{\fmtname <\fmtversion>}
-%    \end{macrocode}
-% Some author info:
-%    \begin{macrocode}
-\def\AUTHOR#1{\LONGTYPEOUT{Author: #1}}
-%    \end{macrocode}
 % Surround commands which produce irrelevant lines in the .log file by
 % |\OMIT|\dots|\TIMO|
 %    \begin{macrocode}
 \def\OMIT{\LONGTYPEOUT{OMIT}}
 \def\TIMO{\LONGTYPEOUT{TIMO}}
 %    \end{macrocode}
-% Not all packages declare themselves to the log file, and we can not
-% rely on TeX`s output as it includes full path names, and does not
-% include version numbers etc.
-%
-% If the class or package is loaded with options, you may
-% specify the options in the |\CLASS| (|\PACKAGE|) declaration. eg:
-% \begin{verbatim}
-% \CLASS[german,a4page]{article v2.0 1994/01/02}
-% \PACKAGE{ifthen v2.2 1993/11/12}
-% \PACKAGE[dvips]{graphics v 3.8 1994/02/02}
-% \end{verbatim}
-%    \begin{macrocode}
-\def\CLASS{\@ifnextchar[\OPTCLASS\XCLASS}
-\def\OPTCLASS[#1]#2{%
-  \TYPE{Main Class: #2^^J\space\space\space\space Options: #1}}
-\def\XCLASS#1{%
-  \TYPE{Main Class: #1}}
-\def\PACKAGE{\@ifnextchar[\OPTPACKAGE\XPACKAGE}
-\def\OPTPACKAGE[#1]#2{%
-  \TYPE{Package: #2^^J\space\space\space\space Options: #1}}
-\def\XPACKAGE#1{%
-  \TYPE{Package: #1}}
-%    \end{macrocode}
-%
-% The commands above require 2e's \verb|\@ifnextchar|, so copy that definition verbatim if necessary:
-%    \begin{macrocode}
-\ifx\@ifnextchar\@undefined
-\long\def\@ifnextchar#1#2#3{%
-  \let\reserved at d=#1%
-  \def\reserved at a{#2}%
-  \def\reserved at b{#3}%
-  \futurelet\@let at token\@ifnch}
-\def\@ifnch{%
-  \ifx\@let at token\@sptoken
-    \let\reserved at c\@xifnch
-  \else
-    \ifx\@let at token\reserved at d
-      \let\reserved at c\reserved at a
-    \else
-      \let\reserved at c\reserved at b
-    \fi
-  \fi
-  \reserved at c}
-\def\:{\let\@sptoken= } \: % this makes \@sptoken a space token
-\def\:{\@xifnch} \expandafter\def\: {\futurelet\@let at token\@ifnch}
-\fi
-%    \end{macrocode}
-% After the above declarations, and before the main tests, you may
-% optionally declare' all the commands in the `module' that you are
-% about to test. These commands will be registered as defined,
-% undefined or relaxed (i.e.~|\let| to |\relax|). You may wish to declare
-% commands not currently implemented, so that if they are added at a
-% later stage, the test will fail, reminding someone to document the
-% fact that the user interface has changed.
-%    \begin{macrocode}
-\def\CHECKCOMMAND#1{%
-  \ifx#1\@undefined\LONGTYPEOUT{Undefined \string#1}\else
-  \ifx#1\relax\LONGTYPEOUT{Relaxed \space\space\string#1}\else
-         \LONGTYPEOUT{Defined \space\space\string#1}\fi\fi}
-%    \end{macrocode}
 % To allow testing of possible changes, we allow extra code to be read
 % in before the test starts. The necessary code should be placed in a
 % file |regression-test.cfg|.
diff --git a/l3build/testfiles-plain/plain-pdftex.lvt b/l3build/testfiles-plain/plain-pdftex.lvt
index 6e9b3cf..d55ca49 100644
--- a/l3build/testfiles-plain/plain-pdftex.lvt
+++ b/l3build/testfiles-plain/plain-pdftex.lvt
@@ -2,9 +2,6 @@
 
 \input regression-test.tex\relax
 
-\FORMAT{plain}
-\PACKAGE[xyz]{abc}
-
 \newtoks\foo % \outer
 
 \START
diff --git a/l3build/testfiles/00-test-1.luatex.tlg b/l3build/testfiles/00-test-1.luatex.tlg
index 711d61f..71c4d21 100644
--- a/l3build/testfiles/00-test-1.luatex.tlg
+++ b/l3build/testfiles/00-test-1.luatex.tlg
@@ -1,9 +1,5 @@
 This is a generated file for the LaTeX (2e + expl3) validation system.
 Don't change this file in any respect.
-Format: latex2e
-Main Class: minimal
-Package: abc
-    Options: xyz
 ============================================================
 TEST 1: \afterassignment 
 ============================================================
diff --git a/l3build/testfiles/00-test-1.lvt b/l3build/testfiles/00-test-1.lvt
index 4738e43..587db27 100644
--- a/l3build/testfiles/00-test-1.lvt
+++ b/l3build/testfiles/00-test-1.lvt
@@ -8,10 +8,6 @@
 
 \START
 
-\FORMAT{latex2e}
-\CLASS{minimal}
-\PACKAGE[xyz]{abc}
-
 \TEST{\afterassignment}{
   \def\x{\afterassignment{\edef\y{world}}\foo}
   \x={hello}
diff --git a/l3build/testfiles/00-test-1.tlg b/l3build/testfiles/00-test-1.tlg
index bc18e59..1652c36 100644
--- a/l3build/testfiles/00-test-1.tlg
+++ b/l3build/testfiles/00-test-1.tlg
@@ -1,9 +1,5 @@
 This is a generated file for the LaTeX (2e + expl3) validation system.
 Don't change this file in any respect.
-Format: latex2e
-Main Class: minimal
-Package: abc
-    Options: xyz
 ============================================================
 TEST 1: \afterassignment 
 ============================================================
diff --git a/support/regression-test.cfg b/support/regression-test.cfg
index e99e16a..f020eef 100644
--- a/support/regression-test.cfg
+++ b/support/regression-test.cfg
@@ -1,6 +1,9 @@
 % Customise the \cs{START} message:
 \def\STARTMESSAGE{This is a generated file for the LaTeX (2e + expl3) validation system.}
 
+% Some custom commands
+\def\AUTHOR#1{\LONGTYPEOUT{Author: #1}}
+
 % We allocate a large number of registers now: this number
 % can be changed to keep register numbers stable in test logs.
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list