Skip to content

Commit

Permalink
Added \SHOWFILE (maybe one day done by l3build adding the file to the…
Browse files Browse the repository at this point in the history
… log instead?)
  • Loading branch information
FrankMittelbach committed Sep 28, 2018
1 parent 57f8534 commit 3e11288
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions l3build.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1824,6 +1824,32 @@
% \end{macrocode}
% \end{macro}
%
%

% \begin{macro}{\SHOWFILE}
% Load a file (e.g.,| \jobname.toc|) into the .log file with the usual special
% characters rendered harmless. Use as |\SHOWFILE{\jobname.aux}|.
% \begin{macrocode}
\begingroup % within the scope of this groups each line needs to end in % !
\catcode`\^^M\active %
\gdef\SHOWFILE#1{%
\typeout{-------- #1 (start) ---------}%
\IfFileExists{#1}%
{\begingroup %
\catcode`\^^M\active %
\edef^^M{^\string^M^^J}%
\everyeof{\noexpand}%
\obeyspaces %
\@sanitize %
\message{\@@input #1 }%
\endgroup }%
{\message{Not found}}%
\typeout{-------- #1 (end) -----------}%
}%
\endgroup
% \end{macrocode}
% \end{macro}
%
% 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|.
Expand Down
4 changes: 2 additions & 2 deletions l3build.ins
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\iffalse meta-comment

File l3build.ins Copyright (C) 2014,2016 The LaTeX3 Project
File l3build.ins Copyright (C) 2014-2018 The LaTeX3 Project

It may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this
Expand Down Expand Up @@ -32,7 +32,7 @@ license information is placed in the derived files.

\preamble

Copyright (C) 2014-2016 The LaTeX3 Project
Copyright (C) 2014-2018 The LaTeX3 Project

It may be distributed and/or modified under the conditions of
the LaTeX Project Public License (LPPL), either version 1.3c of
Expand Down

0 comments on commit 3e11288

Please sign in to comment.