Skip to content

Commit

Permalink
#65 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 17, 2024
1 parent bc53df6 commit a2aff94
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
26 changes: 10 additions & 16 deletions bibcop.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -460,25 +460,19 @@ booktitle = {{Proceedings of the International
\RequirePackage{shellesc}
\makeatletter
\newcommand\bibcop@exec[1]{
\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%
\iexec[maybe]{\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}%
}
\makeatother


% \begin{macro}{\bibliography}
% Then, we re-define the |\bibliography| command:
% \begin{macrocode}
Expand Down
4 changes: 3 additions & 1 deletion bibcop.pl
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,9 @@ sub fail {
}
}

if (not basename($0) eq 'bibcop.pl') {
my $script = basename($0);
$script =~ s/\.pl$//g;
if (not $script eq 'bibcop') {
goto END;
}

Expand Down

0 comments on commit a2aff94

Please sign in to comment.