From dfba588bb1b115af0f341e3caf5f4d74cdfd5263 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 16 Feb 2024 21:10:56 +0000 Subject: texlogfilter (15feb24) git-svn-id: svn://tug.org/texlive/trunk@69918 c570f23f-e606-0410-a88d-b1316a301751 --- .../linked_scripts/texlogfilter/texlogfilter | 17 ++++++++++------- Master/texmf-dist/doc/man/man1/texlogfilter.1 | 12 +++++++----- .../texmf-dist/doc/man/man1/texlogfilter.man1.pdf | Bin 24765 -> 24794 bytes Master/texmf-dist/doc/support/texlogfilter/README | 10 ++++++---- .../doc/support/texlogfilter/texlogfilter.html | 9 ++++++--- Master/texmf-dist/scripts/texlogfilter/texlogfilter | 17 ++++++++++------- 6 files changed, 39 insertions(+), 26 deletions(-) diff --git a/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter b/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter index 6a8b2462329..341318e5764 100755 --- a/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter +++ b/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter @@ -16,7 +16,7 @@ use Getopt::Long; use Term::ANSIColor; my $name = "texlogfilter"; -my $version = "1.2"; +my $version = "1.3"; # options my @userfilters; @@ -27,7 +27,7 @@ my $showboxmsg = 1; my $showinfomsg = 0; my $showskips = 0; my $skipmarker = "..."; -my $extpattern = "tex|sty|cls|bib"; +my $extpattern = "tex|sty|cls|bib|fd|bst|bbx|cbx|def|clo"; my $fulllog = 0; my $printfilename = -1; # -1: value not modified by options my $errcolor = "red"; @@ -187,7 +187,8 @@ while (<>) { # assume currentfile is given in the last open parenthesis # (works badly for packages) - if (/\(([^)]+$extpattern)$/) {$currentfile = $1;} + if (/^[^(]*\)/) {$currentfile = ""; $lastfile = "";} + if (/\(([^)]+($extpattern))$/) {$currentfile = $1;} # try to show usefull lines following some warnings or errors (starting with # whitespaces or package name) @@ -341,12 +342,14 @@ distributions of LaTeX version 2005/12/01 or later. =over -=item * 2024, February, version 1.2 : fix duplicate or missing lines; handle -package and class names with hyphen ; add info and warning patterns for fonts. +=item * 2024, February, version 1.3: better detect the current file name. -=item * 2022, March, version 1.1 : add --info and --no-info options. +=item * 2024, February, version 1.2: fix duplicate or missing lines; handle +package and class names with hyphen; add info and warning patterns for fonts. -=item * 2021, November, version 1.0 : initial version. +=item * 2022, March, version 1.1: add --info and --no-info options. + +=item * 2021, November, version 1.0: initial version. =back diff --git a/Master/texmf-dist/doc/man/man1/texlogfilter.1 b/Master/texmf-dist/doc/man/man1/texlogfilter.1 index 95cfc473e62..4d14fc36ecf 100644 --- a/Master/texmf-dist/doc/man/man1/texlogfilter.1 +++ b/Master/texmf-dist/doc/man/man1/texlogfilter.1 @@ -55,7 +55,7 @@ .\" ======================================================================== .\" .IX Title "TEXLOGFILTER 1" -.TH TEXLOGFILTER 1 2024-02-13 texlogfilter "Julien Labbe" +.TH TEXLOGFILTER 1 2024-02-14 texlogfilter "Julien Labbe" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -140,12 +140,14 @@ distributions of LaTeX version 2005/12/01 or later. .SS HISTORY .IX Subsection "HISTORY" .IP \(bu 4 -2024, February, version 1.2 : fix duplicate or missing lines; handle -package and class names with hyphen ; add info and warning patterns for fonts. +2024, February, version 1.3: better detect the current file name. .IP \(bu 4 -2022, March, version 1.1 : add \-\-info and \-\-no\-info options. +2024, February, version 1.2: fix duplicate or missing lines; handle +package and class names with hyphen; add info and warning patterns for fonts. .IP \(bu 4 -2021, November, version 1.0 : initial version. +2022, March, version 1.1: add \-\-info and \-\-no\-info options. +.IP \(bu 4 +2021, November, version 1.0: initial version. .SS DOCUMENTATION .IX Subsection "DOCUMENTATION" The documentation is integrated, writtent in Plain Old Documentation (POD) diff --git a/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf b/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf index ff501728d26..b69be79f2e2 100644 Binary files a/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf and b/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf differ diff --git a/Master/texmf-dist/doc/support/texlogfilter/README b/Master/texmf-dist/doc/support/texlogfilter/README index e8ceb46dc52..d621a2aeb4b 100644 --- a/Master/texmf-dist/doc/support/texlogfilter/README +++ b/Master/texmf-dist/doc/support/texlogfilter/README @@ -69,13 +69,15 @@ texlogfilter 1.1 HISTORY - * 2024, February, version 1.2 : fix duplicate or missing lines; handle - package and class names with hyphen ; add info and warning patterns + * 2024, February, version 1.3: better detect the current file name. + + * 2024, February, version 1.2: fix duplicate or missing lines; handle + package and class names with hyphen; add info and warning patterns for fonts. - * 2022, March, version 1.1 : add --info and --no-info options. + * 2022, March, version 1.1: add --info and --no-info options. - * 2021, November, version 1.0 : initial version. + * 2021, November, version 1.0: initial version. DOCUMENTATION The documentation is integrated, writtent in Plain Old Documentation diff --git a/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html b/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html index 789edcbc84c..350951829e8 100644 --- a/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html +++ b/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html @@ -94,13 +94,16 @@ diff --git a/Master/texmf-dist/scripts/texlogfilter/texlogfilter b/Master/texmf-dist/scripts/texlogfilter/texlogfilter index 6a8b2462329..341318e5764 100755 --- a/Master/texmf-dist/scripts/texlogfilter/texlogfilter +++ b/Master/texmf-dist/scripts/texlogfilter/texlogfilter @@ -16,7 +16,7 @@ use Getopt::Long; use Term::ANSIColor; my $name = "texlogfilter"; -my $version = "1.2"; +my $version = "1.3"; # options my @userfilters; @@ -27,7 +27,7 @@ my $showboxmsg = 1; my $showinfomsg = 0; my $showskips = 0; my $skipmarker = "..."; -my $extpattern = "tex|sty|cls|bib"; +my $extpattern = "tex|sty|cls|bib|fd|bst|bbx|cbx|def|clo"; my $fulllog = 0; my $printfilename = -1; # -1: value not modified by options my $errcolor = "red"; @@ -187,7 +187,8 @@ while (<>) { # assume currentfile is given in the last open parenthesis # (works badly for packages) - if (/\(([^)]+$extpattern)$/) {$currentfile = $1;} + if (/^[^(]*\)/) {$currentfile = ""; $lastfile = "";} + if (/\(([^)]+($extpattern))$/) {$currentfile = $1;} # try to show usefull lines following some warnings or errors (starting with # whitespaces or package name) @@ -341,12 +342,14 @@ distributions of LaTeX version 2005/12/01 or later. =over -=item * 2024, February, version 1.2 : fix duplicate or missing lines; handle -package and class names with hyphen ; add info and warning patterns for fonts. +=item * 2024, February, version 1.3: better detect the current file name. -=item * 2022, March, version 1.1 : add --info and --no-info options. +=item * 2024, February, version 1.2: fix duplicate or missing lines; handle +package and class names with hyphen; add info and warning patterns for fonts. -=item * 2021, November, version 1.0 : initial version. +=item * 2022, March, version 1.1: add --info and --no-info options. + +=item * 2021, November, version 1.0: initial version. =back -- cgit v1.2.3