texlive[69378] trunk: bibcop (11jan24)
commits+karl at tug.org
commits+karl at tug.org
Thu Jan 11 22:25:49 CET 2024
Revision: 69378
https://tug.org/svn/texlive?view=revision&revision=69378
Author: karl
Date: 2024-01-11 22:25:48 +0100 (Thu, 11 Jan 2024)
Log Message:
-----------
bibcop (11jan24)
Modified Paths:
--------------
trunk/Build/source/texk/texlive/linked_scripts/bibcop/bibcop.pl
trunk/Master/texmf-dist/doc/bibtex/bibcop/LICENSE.txt
trunk/Master/texmf-dist/doc/bibtex/bibcop/README.md
trunk/Master/texmf-dist/doc/bibtex/bibcop/bibcop.pdf
trunk/Master/texmf-dist/doc/man/man1/bibcop.1
trunk/Master/texmf-dist/doc/man/man1/bibcop.man1.pdf
trunk/Master/texmf-dist/scripts/bibcop/bibcop.pl
trunk/Master/texmf-dist/source/bibtex/bibcop/bibcop.dtx
trunk/Master/texmf-dist/source/bibtex/bibcop/bibcop.ins
trunk/Master/texmf-dist/tex/latex/bibcop/bibcop.sty
Modified: trunk/Build/source/texk/texlive/linked_scripts/bibcop/bibcop.pl
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/bibcop/bibcop.pl 2024-01-11 00:43:33 UTC (rev 69377)
+++ trunk/Build/source/texk/texlive/linked_scripts/bibcop/bibcop.pl 2024-01-11 21:25:48 UTC (rev 69378)
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# (The MIT License)
#
-# Copyright (c) 2022-2023 Yegor Bugayenko
+# Copyright (c) 2022-2024 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
@@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-# 2023-09-03 0.0.15
+# 2024-01-11 0.0.16
package bibcop;
use warnings;
@@ -861,7 +861,7 @@
" --latex Report errors in LaTeX format using \\PackageWarningNoLine command\n\n" .
"If any issues, report to GitHub: https://github.com/yegor256/bibcop");
} elsif (exists $args{'--version'} or exists $args{'-v'}) {
- info('0.0.15 2023-09-03');
+ info('0.0.16 2024-01-11');
} else {
my ($file) = grep { not($_ =~ /^-.*$/) } @ARGV;
if (not $file) {
Modified: trunk/Master/texmf-dist/doc/bibtex/bibcop/LICENSE.txt
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/bibcop/LICENSE.txt 2024-01-11 00:43:33 UTC (rev 69377)
+++ trunk/Master/texmf-dist/doc/bibtex/bibcop/LICENSE.txt 2024-01-11 21:25:48 UTC (rev 69378)
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2022-2023 Yegor Bugayenko
+Copyright (c) 2022-2024 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Modified: trunk/Master/texmf-dist/doc/bibtex/bibcop/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/bibcop/README.md 2024-01-11 00:43:33 UTC (rev 69377)
+++ trunk/Master/texmf-dist/doc/bibtex/bibcop/README.md 2024-01-11 21:25:48 UTC (rev 69378)
@@ -10,6 +10,9 @@
[biblatex-check](https://github.com/pezmc/biblatex-check) tools —
they do _almost_ the same but from the command line.
+Read [this blog post](https://www.yegor256.com/2023/09/05/style-checker-for-bibtex-files.html),
+in order to understand the motivation behind this package.
+
First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
from [CTAN](https://ctan.org/pkg/bibcop)
and then use in the preamble (if you use [BibTeX](http://www.bibtex.org/), for example):
@@ -64,4 +67,4 @@
You should see the `GREAT!` message.
-Copyright (c) 2022-2023 Yegor Bugayenko, MIT License
\ No newline at end of file
+Copyright (c) 2022-2024 Yegor Bugayenko, MIT License
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/bibtex/bibcop/bibcop.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/man/man1/bibcop.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/bibcop.1 2024-01-11 00:43:33 UTC (rev 69377)
+++ trunk/Master/texmf-dist/doc/man/man1/bibcop.1 2024-01-11 21:25:48 UTC (rev 69378)
@@ -1,4 +1,4 @@
-.TH bibcop 1 "2023-09-03"
+.TH bibcop 1 "2024-01-11"
.SH NAME
bibcop \- Style Checker and Fixer of BibTeX Files (.bib)
.SH SYNOPSIS
Modified: trunk/Master/texmf-dist/doc/man/man1/bibcop.man1.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/scripts/bibcop/bibcop.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/bibcop/bibcop.pl 2024-01-11 00:43:33 UTC (rev 69377)
+++ trunk/Master/texmf-dist/scripts/bibcop/bibcop.pl 2024-01-11 21:25:48 UTC (rev 69378)
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# (The MIT License)
#
-# Copyright (c) 2022-2023 Yegor Bugayenko
+# Copyright (c) 2022-2024 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
@@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-# 2023-09-03 0.0.15
+# 2024-01-11 0.0.16
package bibcop;
use warnings;
@@ -861,7 +861,7 @@
" --latex Report errors in LaTeX format using \\PackageWarningNoLine command\n\n" .
"If any issues, report to GitHub: https://github.com/yegor256/bibcop");
} elsif (exists $args{'--version'} or exists $args{'-v'}) {
- info('0.0.15 2023-09-03');
+ info('0.0.16 2024-01-11');
} else {
my ($file) = grep { not($_ =~ /^-.*$/) } @ARGV;
if (not $file) {
Modified: trunk/Master/texmf-dist/source/bibtex/bibcop/bibcop.dtx
===================================================================
--- trunk/Master/texmf-dist/source/bibtex/bibcop/bibcop.dtx 2024-01-11 00:43:33 UTC (rev 69377)
+++ trunk/Master/texmf-dist/source/bibtex/bibcop/bibcop.dtx 2024-01-11 21:25:48 UTC (rev 69378)
@@ -1,7 +1,7 @@
% \iffalse meta-comment
% (The MIT License)
%
-% Copyright (c) 2022-2023 Yegor Bugayenko
+% Copyright (c) 2022-2024 Yegor Bugayenko
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the 'Software'), to deal
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{bibcop}
%<*package>
-[2023-09-03 0.0.15 Style Checker of Bibliography Files]
+[2024-01-11 0.0.16 Style Checker of Bibliography Files]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -454,20 +454,27 @@
% \end{macro}
% \begin{macro}{\bibcop at exec}
+% \changes{0.0.16}{2024/01/11}{When \texttt{-shell-escape} is not set, there is no validation performed.}
% Then, we define a supplementary command to execute the Perl script:
% \begin{macrocode}
+\RequirePackage{shellesc}
\makeatletter
\newcommand\bibcop at exec[1]{
- \iexec{\bibcop at script\space
- \ifdefined\bibcop at verbose--verbose\fi\space
- \ifdefined\bibcop at notags--no:tags\fi\space
- \ifdefined\bibcop at noinproc--no:org\fi\space
- \ifdefined\bibcop at noinproc--no:inproc\fi\space
- \ifdefined\bibcop at nodoi--no:doi\fi\space
- \ifdefined\bibcop at nocaps--no:caps\fi\space
- \ifdefined\bibcop at nowraps--no:wraps\fi\space
- --latex '#1'}%
- \message{bibcop: style checking finished for #1^^J}%
+ \ifnum\ShellEscapeStatus=1
+ \iexec{\bibcop at script\space
+ \ifdefined\bibcop at verbose--verbose\fi\space
+ \ifdefined\bibcop at notags--no:tags\fi\space
+ \ifdefined\bibcop at noinproc--no:org\fi\space
+ \ifdefined\bibcop at noinproc--no:inproc\fi\space
+ \ifdefined\bibcop at nodoi--no:doi\fi\space
+ \ifdefined\bibcop at nocaps--no:caps\fi\space
+ \ifdefined\bibcop at nowraps--no:wraps\fi\space
+ --latex '#1'}%
+ \message{bibcop: style checking finished for #1^^J}%
+ \else%
+ \message{bibcop: since -shell-escape is not set, no
+ style checking performed for #1^^J}%
+ \fi%
}
\makeatother
Modified: trunk/Master/texmf-dist/source/bibtex/bibcop/bibcop.ins
===================================================================
--- trunk/Master/texmf-dist/source/bibtex/bibcop/bibcop.ins 2024-01-11 00:43:33 UTC (rev 69377)
+++ trunk/Master/texmf-dist/source/bibtex/bibcop/bibcop.ins 2024-01-11 21:25:48 UTC (rev 69378)
@@ -1,6 +1,6 @@
%% (The MIT License)
%%
-%% Copyright (c) 2022-2023 Yegor Bugayenko
+%% Copyright (c) 2022-2024 Yegor Bugayenko
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the 'Software'), to deal
@@ -26,7 +26,7 @@
\preamble
(The MIT License)
-Copyright (c) 2022-2023 Yegor Bugayenko
+Copyright (c) 2022-2024 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Modified: trunk/Master/texmf-dist/tex/latex/bibcop/bibcop.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bibcop/bibcop.sty 2024-01-11 00:43:33 UTC (rev 69377)
+++ trunk/Master/texmf-dist/tex/latex/bibcop/bibcop.sty 2024-01-11 21:25:48 UTC (rev 69378)
@@ -7,7 +7,7 @@
%% bibcop.dtx (with options: `package')
%% (The MIT License)
%%
-%% Copyright (c) 2022-2023 Yegor Bugayenko
+%% Copyright (c) 2022-2024 Yegor Bugayenko
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the 'Software'), to deal
@@ -31,7 +31,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bibcop}
-[2023-09-03 0.0.15 Style Checker of Bibliography Files]
+[2024-01-11 0.0.16 Style Checker of Bibliography Files]
@@ -88,18 +88,24 @@
\message{bibcop: The Perl script is at '\bibcop at script'^^J}%
\makeatother
+\RequirePackage{shellesc}
\makeatletter
\newcommand\bibcop at exec[1]{
- \iexec{\bibcop at script\space
- \ifdefined\bibcop at verbose--verbose\fi\space
- \ifdefined\bibcop at notags--no:tags\fi\space
- \ifdefined\bibcop at noinproc--no:org\fi\space
- \ifdefined\bibcop at noinproc--no:inproc\fi\space
- \ifdefined\bibcop at nodoi--no:doi\fi\space
- \ifdefined\bibcop at nocaps--no:caps\fi\space
- \ifdefined\bibcop at nowraps--no:wraps\fi\space
- --latex '#1'}%
- \message{bibcop: style checking finished for #1^^J}%
+ \ifnum\ShellEscapeStatus=1
+ \iexec{\bibcop at script\space
+ \ifdefined\bibcop at verbose--verbose\fi\space
+ \ifdefined\bibcop at notags--no:tags\fi\space
+ \ifdefined\bibcop at noinproc--no:org\fi\space
+ \ifdefined\bibcop at noinproc--no:inproc\fi\space
+ \ifdefined\bibcop at nodoi--no:doi\fi\space
+ \ifdefined\bibcop at nocaps--no:caps\fi\space
+ \ifdefined\bibcop at nowraps--no:wraps\fi\space
+ --latex '#1'}%
+ \message{bibcop: style checking finished for #1^^J}%
+ \else%
+ \message{bibcop: since -shell-escape is not set, no
+ style checking performed for #1^^J}%
+ \fi%
}
\makeatother
More information about the tex-live-commits
mailing list.