diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/bibcop/bibcop.sty | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/bibcop/bibcop.sty b/Master/texmf-dist/tex/latex/bibcop/bibcop.sty index c6561afc0b6..ceab34a3f4c 100644 --- a/Master/texmf-dist/tex/latex/bibcop/bibcop.sty +++ b/Master/texmf-dist/tex/latex/bibcop/bibcop.sty @@ -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,8 @@ \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] + @@ -66,18 +67,24 @@ \pgfkeys{ /bibcop/.cd, verbose/.store in=\bibcop@verbose, + script/.store in = \bibcop@script, } \ProcessPgfPackageOptions{/bibcop} -\RequirePackage{verbatimcopy} -\VerbatimCopy{bibcop.pl}{bibcop.tmp.pl} -\message{bibcop: File with Perl script 'bibcop.pl' copied^^J}% +\makeatletter +\ifdefined\bibcop@script\else + \IfFileExists{bibcop.pl} + {\gdef\bibcop@script{perl ./bibcop.pl}} + {\gdef\bibcop@script{bibcop}} +\fi +\message{bibcop: The Perl script is at '\bibcop@script'^^J}% +\makeatother \makeatletter \ifdefined\bibliography \let\bibcop@oldbibliography\bibliography \renewcommand\bibliography[1]{% - \iexec{perl "./bibcop.tmp.pl"\space + \iexec{\bibcop@script\space \ifdefined\bibcop@verbose--verbose\fi\space --latex '#1.bib'}% \message{bibcop: style checking finished^^J}% @@ -90,7 +97,7 @@ \ifdefined\addbibresource \let\bibcop@oldaddbibresource\addbibresource \renewcommand\addbibresource[1]{% - \iexec{perl "./bibcop.tmp.pl"\space + \iexec{\bibcop@script\space \ifdefined\bibcop@verbose--verbose\fi\space --latex '#1'}% \message{bibcop: style checking finished^^J}% |