diff options
author | Karl Berry <karl@freefriends.org> | 2024-02-16 21:10:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-02-16 21:10:56 +0000 |
commit | dfba588bb1b115af0f341e3caf5f4d74cdfd5263 (patch) | |
tree | 251e6ea91b1c3165d856a0fee6aa485e9a4b5717 | |
parent | bccd079a6fec6ac14d5ca02410456cc819913502 (diff) |
texlogfilter (15feb24)
git-svn-id: svn://tug.org/texlive/trunk@69918 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter | 17 | ||||
-rw-r--r-- | Master/texmf-dist/doc/man/man1/texlogfilter.1 | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf | bin | 24765 -> 24794 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/support/texlogfilter/README | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html | 9 | ||||
-rwxr-xr-x | 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 Binary files differindex ff501728d26..b69be79f2e2 100644 --- a/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf +++ b/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf 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 @@ <ul> -<li><p>2024, February, version 1.2 : fix duplicate or missing lines; handle package and class names with hyphen ; add info and warning patterns for fonts.</p> +<li><p>2024, February, version 1.3: better detect the current file name.</p> </li> -<li><p>2022, March, version 1.1 : add --info and --no-info options.</p> +<li><p>2024, February, version 1.2: fix duplicate or missing lines; handle package and class names with hyphen; add info and warning patterns for fonts.</p> </li> -<li><p>2021, November, version 1.0 : initial version.</p> +<li><p>2022, March, version 1.1: add --info and --no-info options.</p> + +</li> +<li><p>2021, November, version 1.0: initial version.</p> </li> </ul> 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 |