diff options
author | Norbert Preining <norbert@preining.info> | 2024-01-12 03:01:12 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-01-12 03:01:12 +0000 |
commit | 1748d1e662c9618cc16f80d5e67669e9e9d6d4be (patch) | |
tree | 7d46019dbae3fa8e0345487ecf524cfc641f1b2a /biblio/bibtex/utils/bibcop | |
parent | b14090c9f3c7797e26fed9eb2b83ce144dcb16a3 (diff) |
CTAN sync 202401120301
Diffstat (limited to 'biblio/bibtex/utils/bibcop')
-rw-r--r-- | biblio/bibtex/utils/bibcop/LICENSE.txt | 2 | ||||
-rw-r--r-- | biblio/bibtex/utils/bibcop/README.md | 5 | ||||
-rw-r--r-- | biblio/bibtex/utils/bibcop/bibcop.1 | 2 | ||||
-rw-r--r-- | biblio/bibtex/utils/bibcop/bibcop.dtx | 31 | ||||
-rw-r--r-- | biblio/bibtex/utils/bibcop/bibcop.ins | 4 | ||||
-rw-r--r-- | biblio/bibtex/utils/bibcop/bibcop.pdf | bin | 347540 -> 348056 bytes | |||
-rwxr-xr-x | biblio/bibtex/utils/bibcop/bibcop.pl | 6 |
7 files changed, 30 insertions, 20 deletions
diff --git a/biblio/bibtex/utils/bibcop/LICENSE.txt b/biblio/bibtex/utils/bibcop/LICENSE.txt index 4351be233c..be1f11a290 100644 --- a/biblio/bibtex/utils/bibcop/LICENSE.txt +++ b/biblio/bibtex/utils/bibcop/LICENSE.txt @@ -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 diff --git a/biblio/bibtex/utils/bibcop/README.md b/biblio/bibtex/utils/bibcop/README.md index 55101b4e2d..e1263b09f3 100644 --- a/biblio/bibtex/utils/bibcop/README.md +++ b/biblio/bibtex/utils/bibcop/README.md @@ -10,6 +10,9 @@ emits warning message if any issues are found. You may also like [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 @@ $ perl tests.pl 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 diff --git a/biblio/bibtex/utils/bibcop/bibcop.1 b/biblio/bibtex/utils/bibcop/bibcop.1 index e167fb442c..64b5bd3b69 100644 --- a/biblio/bibtex/utils/bibcop/bibcop.1 +++ b/biblio/bibtex/utils/bibcop/bibcop.1 @@ -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 diff --git a/biblio/bibtex/utils/bibcop/bibcop.dtx b/biblio/bibtex/utils/bibcop/bibcop.dtx index cdd5dddc4c..0e078c298a 100644 --- a/biblio/bibtex/utils/bibcop/bibcop.dtx +++ b/biblio/bibtex/utils/bibcop/bibcop.dtx @@ -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 @@ booktitle = {{Proceedings of the International % \end{macro} % \begin{macro}{\bibcop@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@exec[1]{ - \iexec{\bibcop@script\space - \ifdefined\bibcop@verbose--verbose\fi\space - \ifdefined\bibcop@notags--no:tags\fi\space - \ifdefined\bibcop@noinproc--no:org\fi\space - \ifdefined\bibcop@noinproc--no:inproc\fi\space - \ifdefined\bibcop@nodoi--no:doi\fi\space - \ifdefined\bibcop@nocaps--no:caps\fi\space - \ifdefined\bibcop@nowraps--no:wraps\fi\space - --latex '#1'}% - \message{bibcop: style checking finished for #1^^J}% + \ifnum\ShellEscapeStatus=1 + \iexec{\bibcop@script\space + \ifdefined\bibcop@verbose--verbose\fi\space + \ifdefined\bibcop@notags--no:tags\fi\space + \ifdefined\bibcop@noinproc--no:org\fi\space + \ifdefined\bibcop@noinproc--no:inproc\fi\space + \ifdefined\bibcop@nodoi--no:doi\fi\space + \ifdefined\bibcop@nocaps--no:caps\fi\space + \ifdefined\bibcop@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 diff --git a/biblio/bibtex/utils/bibcop/bibcop.ins b/biblio/bibtex/utils/bibcop/bibcop.ins index d0ea50f43c..0072e39b08 100644 --- a/biblio/bibtex/utils/bibcop/bibcop.ins +++ b/biblio/bibtex/utils/bibcop/bibcop.ins @@ -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 diff --git a/biblio/bibtex/utils/bibcop/bibcop.pdf b/biblio/bibtex/utils/bibcop/bibcop.pdf Binary files differindex 9620cedd9c..c81908a5b0 100644 --- a/biblio/bibtex/utils/bibcop/bibcop.pdf +++ b/biblio/bibtex/utils/bibcop/bibcop.pdf diff --git a/biblio/bibtex/utils/bibcop/bibcop.pl b/biblio/bibtex/utils/bibcop/bibcop.pl index a9b2057895..081ac6bbdf 100755 --- a/biblio/bibtex/utils/bibcop/bibcop.pl +++ b/biblio/bibtex/utils/bibcop/bibcop.pl @@ -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 @@ if (@ARGV+0 eq 0 or exists $args{'--help'} or exists $args{'-?'}) { " --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) { |