summaryrefslogtreecommitdiff
path: root/biblio/bibtex/utils/bibcop/bibcop.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'biblio/bibtex/utils/bibcop/bibcop.dtx')
-rw-r--r--biblio/bibtex/utils/bibcop/bibcop.dtx31
1 files changed, 19 insertions, 12 deletions
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