texlive[65489] trunk: bibcop (7jan23)

commits+karl at tug.org commits+karl at tug.org
Sun Jan 8 21:57:21 CET 2023


Revision: 65489
          http://tug.org/svn/texlive?view=revision&revision=65489
Author:   karl
Date:     2023-01-08 21:57:20 +0100 (Sun, 08 Jan 2023)
Log Message:
-----------
bibcop (7jan23)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/bibcop/bibcop.pl
    trunk/Master/texmf-dist/doc/latex/bibcop/DEPENDS.txt
    trunk/Master/texmf-dist/doc/latex/bibcop/LICENSE.txt
    trunk/Master/texmf-dist/doc/latex/bibcop/README.md
    trunk/Master/texmf-dist/doc/latex/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/latex/bibcop/bibcop.dtx
    trunk/Master/texmf-dist/source/latex/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	2023-01-08 12:16:22 UTC (rev 65488)
+++ trunk/Build/source/texk/texlive/linked_scripts/bibcop/bibcop.pl	2023-01-08 20:57:20 UTC (rev 65489)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # (The MIT License)
 #
-# Copyright (c) 2022 Yegor Bugayenko
+# Copyright (c) 2022-2023 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
@@ -530,7 +530,7 @@
 sub error {
   my ($txt) = @_;
   if (exists $args{'--latex'}) {
-    print "\\PackageError{bibcop}{$txt}\n";
+    print "\\PackageError{bibcop}{$txt}{}\n";
     exit 0;
   } else {
     print STDERR $txt . "\n";
@@ -581,7 +581,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.5');
+  info('0.0.6');
 } else {
   my ($file) = grep { not($_ =~ /^--.*$/) } @ARGV;
   if (not $file) {

Modified: trunk/Master/texmf-dist/doc/latex/bibcop/DEPENDS.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bibcop/DEPENDS.txt	2023-01-08 12:16:22 UTC (rev 65488)
+++ trunk/Master/texmf-dist/doc/latex/bibcop/DEPENDS.txt	2023-01-08 20:57:20 UTC (rev 65489)
@@ -1,3 +1,2 @@
 hard iexec
-hard verbatimcopy
 hard pgfopts

Modified: trunk/Master/texmf-dist/doc/latex/bibcop/LICENSE.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bibcop/LICENSE.txt	2023-01-08 12:16:22 UTC (rev 65488)
+++ trunk/Master/texmf-dist/doc/latex/bibcop/LICENSE.txt	2023-01-08 20:57:20 UTC (rev 65489)
@@ -1,6 +1,6 @@
 (The MIT License)
 
-Copyright (c) 2022 Yegor Bugayenko
+Copyright (c) 2022-2023 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/latex/bibcop/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bibcop/README.md	2023-01-08 12:16:22 UTC (rev 65488)
+++ trunk/Master/texmf-dist/doc/latex/bibcop/README.md	2023-01-08 20:57:20 UTC (rev 65489)
@@ -5,10 +5,10 @@
 [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/bibcop/blob/master/LICENSE.txt)
 
 This LaTeX package checks the quality of your `.bib` file and
-emits warning message if any issues found. You may also like
+emits warning message if any issues are found. You may also like
 [biblint](https://github.com/Kingsford-Group/biblint) and
 [biblatex-check](https://github.com/pezmc/biblatex-check) tools —
-they does almost the same but from the command line.
+they do _almost_ the same but from the command line.
 
 First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
 from [CTAN](https://ctan.org/pkg/bibcop)
@@ -23,9 +23,9 @@
 \end{document}
 ```
 
-Otherwise, you can download [`bibcop.sty`](https://raw.githubusercontent.com/yegor256/bibcop/gh-pages/bibcop/bibcop.sty) and add to your project.
+Otherwise, you can download [`bibcop.sty`](https://raw.githubusercontent.com/yegor256/bibcop/gh-pages/bibcop/bibcop.sty) and add to your project (together with [`bibcop.pl`](https://raw.githubusercontent.com/yegor256/bibcop/master/bibcop.pl)!).
 
-You can also download [bibcop.pl](https://raw.githubusercontent.com/yegor256/bibcop/master/bibcop.pl)
+You can also download [`bibcop.pl`](https://raw.githubusercontent.com/yegor256/bibcop/master/bibcop.pl)
 and use it as a command line tool
 to check your `.bib` files and to auto-fix them
 (you should have [Perl](https://www.perl.org) installed):

Modified: trunk/Master/texmf-dist/doc/latex/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	2023-01-08 12:16:22 UTC (rev 65488)
+++ trunk/Master/texmf-dist/doc/man/man1/bibcop.1	2023-01-08 20:57:20 UTC (rev 65489)
@@ -1,4 +1,4 @@
-.TH bibcop 1 "2022-12-18"
+.TH bibcop 1 "2023-01-08"
 .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	2023-01-08 12:16:22 UTC (rev 65488)
+++ trunk/Master/texmf-dist/scripts/bibcop/bibcop.pl	2023-01-08 20:57:20 UTC (rev 65489)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # (The MIT License)
 #
-# Copyright (c) 2022 Yegor Bugayenko
+# Copyright (c) 2022-2023 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
@@ -530,7 +530,7 @@
 sub error {
   my ($txt) = @_;
   if (exists $args{'--latex'}) {
-    print "\\PackageError{bibcop}{$txt}\n";
+    print "\\PackageError{bibcop}{$txt}{}\n";
     exit 0;
   } else {
     print STDERR $txt . "\n";
@@ -581,7 +581,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.5');
+  info('0.0.6');
 } else {
   my ($file) = grep { not($_ =~ /^--.*$/) } @ARGV;
   if (not $file) {

Modified: trunk/Master/texmf-dist/source/latex/bibcop/bibcop.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/bibcop/bibcop.dtx	2023-01-08 12:16:22 UTC (rev 65488)
+++ trunk/Master/texmf-dist/source/latex/bibcop/bibcop.dtx	2023-01-08 20:57:20 UTC (rev 65489)
@@ -1,7 +1,7 @@
 % \iffalse meta-comment
 % (The MIT License)
 %
-% Copyright (c) 2022 Yegor Bugayenko
+% Copyright (c) 2022-2023 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>
-[2022-12-18 0.0.5 Style Checker of Bibliography Files]
+[2023-01-08 0.0.6 Style Checker of Bibliography Files]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -137,6 +137,18 @@
 %</verb>
 %\fi
 
+% \DescribeMacro{script}
+% The package depends on the |bibcop.pl| file, which is a Perl script that does all the work. This file is supposed to be located either in the current directory or in the |texmf-dist/scripts/bibcop/| directory. Using the |script| option the location of the script may be explicitly defined (it is not recommended to use this option unless there is a special demand for it):
+%\iffalse
+%<*verb>
+%\fi
+\begin{verbatim}
+\usepackage[script=my-perl-script.pl]{bibcop}
+\end{verbatim}
+%\iffalse
+%</verb>
+%\fi
+
 % \section{The Rules}
 
 % This is a more or less complete list of rules enforced on a |.bib| file:
@@ -375,6 +387,7 @@
 % \changes{0.0.4}{2022/12/14}{Extra checks for the typography, together with more extensive Perl testing.}
 % \changes{0.0.4}{2022/12/14}{The \texttt{--verbose} option introduced, to enable debugging information only on demand.}
 % \changes{0.0.4}{2022/12/15}{Package options introduced, the \texttt{verbose} option enables detailed logging inside the \TeX{} log.}
+% \changes{0.0.6}{2023/01/08}{The \texttt{script} package option introduced, to enable explicit configuration of the location of the \texttt{bibcop.pl} Perl script.}
 
 % First, we include a few packages.
 % We need \href{https://ctan.org/pkg/iexec}{iexec} for executing Perl scripts:
@@ -388,17 +401,22 @@
 \pgfkeys{
   /bibcop/.cd,
   verbose/.store in=\bibcop at verbose,
+  script/.store in = \bibcop at script,
 }
 \ProcessPgfPackageOptions{/bibcop}
 %    \end{macrocode}
 
 % \begin{macro}{bibcop.pl}
-% Then, we copy the Perl script using |\VerbatimCopy| from
-% \href{https://ctan.org/pkg/verbatimcopy}{verbatimcopy}:
+% Then, we find the Perl script:
 %    \begin{macrocode}
-\RequirePackage{verbatimcopy}
-\VerbatimCopy{bibcop.pl}{bibcop.tmp.pl}
-\message{bibcop: File with Perl script 'bibcop.pl' copied^^J}%
+\makeatletter
+\ifdefined\bibcop at script\else
+  \IfFileExists{bibcop.pl}
+    {\gdef\bibcop at script{perl ./bibcop.pl}}
+    {\gdef\bibcop at script{bibcop}}
+\fi
+\message{bibcop: The Perl script is at '\bibcop at script'^^J}%
+\makeatother
 %    \end{macrocode}
 % \end{macro}
 
@@ -409,7 +427,7 @@
 \ifdefined\bibliography
   \let\bibcop at oldbibliography\bibliography
   \renewcommand\bibliography[1]{%
-    \iexec{perl "./bibcop.tmp.pl"\space
+    \iexec{\bibcop at script\space
       \ifdefined\bibcop at verbose--verbose\fi\space
       --latex '#1.bib'}%
     \message{bibcop: style checking finished^^J}%
@@ -427,7 +445,7 @@
 \ifdefined\addbibresource
   \let\bibcop at oldaddbibresource\addbibresource
   \renewcommand\addbibresource[1]{%
-    \iexec{perl "./bibcop.tmp.pl"\space
+    \iexec{\bibcop at script\space
       \ifdefined\bibcop at verbose--verbose\fi\space
       --latex '#1'}%
     \message{bibcop: style checking finished^^J}%

Modified: trunk/Master/texmf-dist/source/latex/bibcop/bibcop.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/bibcop/bibcop.ins	2023-01-08 12:16:22 UTC (rev 65488)
+++ trunk/Master/texmf-dist/source/latex/bibcop/bibcop.ins	2023-01-08 20:57:20 UTC (rev 65489)
@@ -1,6 +1,6 @@
 %% (The MIT License)
 %%
-%% Copyright (c) 2022 Yegor Bugayenko
+%% Copyright (c) 2022-2023 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 Yegor Bugayenko
+Copyright (c) 2022-2023 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	2023-01-08 12:16:22 UTC (rev 65488)
+++ trunk/Master/texmf-dist/tex/latex/bibcop/bibcop.sty	2023-01-08 20:57:20 UTC (rev 65489)
@@ -7,7 +7,7 @@
 %% bibcop.dtx  (with options: `package')
 %% (The MIT License)
 %% 
-%% Copyright (c) 2022 Yegor Bugayenko
+%% Copyright (c) 2022-2023 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}
-[2022-12-18 0.0.5 Style Checker of Bibliography Files]
+[2023-01-08 0.0.6 Style Checker of Bibliography Files]
 
 
 
@@ -60,6 +60,7 @@
 
 
 
+
 \RequirePackage{iexec}
 
 \RequirePackage{pgfopts}
@@ -66,18 +67,24 @@
 \pgfkeys{
   /bibcop/.cd,
   verbose/.store in=\bibcop at verbose,
+  script/.store in = \bibcop at script,
 }
 \ProcessPgfPackageOptions{/bibcop}
 
-\RequirePackage{verbatimcopy}
-\VerbatimCopy{bibcop.pl}{bibcop.tmp.pl}
-\message{bibcop: File with Perl script 'bibcop.pl' copied^^J}%
+\makeatletter
+\ifdefined\bibcop at script\else
+  \IfFileExists{bibcop.pl}
+    {\gdef\bibcop at script{perl ./bibcop.pl}}
+    {\gdef\bibcop at script{bibcop}}
+\fi
+\message{bibcop: The Perl script is at '\bibcop at script'^^J}%
+\makeatother
 
 \makeatletter
 \ifdefined\bibliography
   \let\bibcop at oldbibliography\bibliography
   \renewcommand\bibliography[1]{%
-    \iexec{perl "./bibcop.tmp.pl"\space
+    \iexec{\bibcop at script\space
       \ifdefined\bibcop at verbose--verbose\fi\space
       --latex '#1.bib'}%
     \message{bibcop: style checking finished^^J}%
@@ -90,7 +97,7 @@
 \ifdefined\addbibresource
   \let\bibcop at oldaddbibresource\addbibresource
   \renewcommand\addbibresource[1]{%
-    \iexec{perl "./bibcop.tmp.pl"\space
+    \iexec{\bibcop at script\space
       \ifdefined\bibcop at verbose--verbose\fi\space
       --latex '#1'}%
     \message{bibcop: style checking finished^^J}%



More information about the tex-live-commits mailing list.