summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-04-15 03:02:52 +0000
committerNorbert Preining <norbert@preining.info>2020-04-15 03:02:52 +0000
commite768cc604852d6fe8821592cea67835f67eab0db (patch)
tree06dc26d3571570f9578f59825f6ecc2186dfb47c /support
parentc7235aafe4ddb8f9800cdf784212d4c53bb53e32 (diff)
CTAN sync 202004150302
Diffstat (limited to 'support')
-rw-r--r--support/arara/README.md2
-rw-r--r--support/arara/doc/arara-manual.pdfbin1862533 -> 1865024 bytes
-rw-r--r--support/arara/doc/arara-manual.tex2
-rw-r--r--support/arara/doc/chapters/concepts.tex6
-rw-r--r--support/arara/scripts/rules/animate.yaml4
-rw-r--r--support/arara/scripts/rules/asymptote.yaml2
-rw-r--r--support/arara/scripts/rules/bib2gls.yaml5
-rw-r--r--support/arara/scripts/rules/biber.yaml3
-rw-r--r--support/arara/scripts/rules/bibtex.yaml2
-rw-r--r--support/arara/scripts/rules/bibtex8.yaml2
-rw-r--r--support/arara/scripts/rules/bibtexu.yaml2
-rw-r--r--support/arara/scripts/rules/context.yaml2
-rw-r--r--support/arara/scripts/rules/csplain.yaml2
-rw-r--r--support/arara/scripts/rules/detex.yaml2
-rw-r--r--support/arara/scripts/rules/dvipdfm.yaml4
-rw-r--r--support/arara/scripts/rules/dvipdfmx.yaml4
-rw-r--r--support/arara/scripts/rules/dvips.yaml4
-rw-r--r--support/arara/scripts/rules/dvipspdf.yaml8
-rw-r--r--support/arara/scripts/rules/dvisvgm.yaml2
-rw-r--r--support/arara/scripts/rules/etex.yaml3
-rw-r--r--support/arara/scripts/rules/fig2dev.yaml2
-rw-r--r--support/arara/scripts/rules/frontespizio.yaml10
-rw-r--r--support/arara/scripts/rules/indent.yaml4
-rw-r--r--support/arara/scripts/rules/knitr.yaml2
-rw-r--r--support/arara/scripts/rules/latex.yaml2
-rw-r--r--support/arara/scripts/rules/latexmk.yaml2
-rw-r--r--support/arara/scripts/rules/luahbtex.yaml2
-rw-r--r--support/arara/scripts/rules/lualatex.yaml2
-rw-r--r--support/arara/scripts/rules/luatex.yaml2
-rw-r--r--support/arara/scripts/rules/makeglossaries.yaml3
-rw-r--r--support/arara/scripts/rules/makeglossarieslite.yaml3
-rw-r--r--support/arara/scripts/rules/makeindex.yaml2
-rw-r--r--support/arara/scripts/rules/metapost.yaml2
-rw-r--r--support/arara/scripts/rules/nomencl.yaml4
-rw-r--r--support/arara/scripts/rules/pbibtex.yaml2
-rw-r--r--support/arara/scripts/rules/pdfcsplain.yaml2
-rw-r--r--support/arara/scripts/rules/pdflatex.yaml2
-rw-r--r--support/arara/scripts/rules/pdftex.yaml2
-rw-r--r--support/arara/scripts/rules/pdftk.yaml2
-rw-r--r--support/arara/scripts/rules/platex.yaml2
-rw-r--r--support/arara/scripts/rules/ps2pdf.yaml4
-rw-r--r--support/arara/scripts/rules/ptex.yaml2
-rw-r--r--support/arara/scripts/rules/sketch.yaml5
-rw-r--r--support/arara/scripts/rules/tex.yaml3
-rw-r--r--support/arara/scripts/rules/texcount.yaml3
-rw-r--r--support/arara/scripts/rules/texindy.yaml2
-rw-r--r--support/arara/scripts/rules/tikzmake.yaml2
-rw-r--r--support/arara/scripts/rules/upbibtex.yaml3
-rw-r--r--support/arara/scripts/rules/uplatex.yaml2
-rw-r--r--support/arara/scripts/rules/uptex.yaml2
-rw-r--r--support/arara/scripts/rules/xdvipdfmx.yaml4
-rw-r--r--support/arara/scripts/rules/xelatex.yaml2
-rw-r--r--support/arara/scripts/rules/xetex.yaml2
-rw-r--r--support/arara/scripts/rules/xindy.yaml2
-rw-r--r--support/pkgcheck/CHANGES.md17
-rw-r--r--support/pkgcheck/Cargo.toml9
-rwxr-xr-xsupport/pkgcheck/bin/pkgcheckbin7026480 -> 6109008 bytes
-rw-r--r--support/pkgcheck/docs/errorsd.tex7
-rw-r--r--support/pkgcheck/docs/pkgcheck.pdfbin69832 -> 75087 bytes
-rw-r--r--support/pkgcheck/docs/title.tex2
-rw-r--r--support/pkgcheck/src/generate.pest.md4
-rw-r--r--support/pkgcheck/src/main.rs66
-rw-r--r--support/pkgcheck/src/messages/errorsd.rs5
-rw-r--r--support/pkgcheck/src/utils.rs2
64 files changed, 153 insertions, 112 deletions
diff --git a/support/arara/README.md b/support/arara/README.md
index d5417174ca..603096728f 100644
--- a/support/arara/README.md
+++ b/support/arara/README.md
@@ -1,6 +1,6 @@
![arara](https://i.stack.imgur.com/hjUsN.png)
-# arara v5.1.0
+# arara v5.1.1
![Language: Kotlin](https://img.shields.io/badge/Language-Kotlin-blue.svg?style=flat-square)
![Minimum JRE: 8.0](https://img.shields.io/badge/Minimum_JRE-8-blue.svg?style=flat-square)
diff --git a/support/arara/doc/arara-manual.pdf b/support/arara/doc/arara-manual.pdf
index 3a45d4a519..210a51de4e 100644
--- a/support/arara/doc/arara-manual.pdf
+++ b/support/arara/doc/arara-manual.pdf
Binary files differ
diff --git a/support/arara/doc/arara-manual.tex b/support/arara/doc/arara-manual.tex
index 3f245802fc..4b15732eec 100644
--- a/support/arara/doc/arara-manual.tex
+++ b/support/arara/doc/arara-manual.tex
@@ -42,7 +42,7 @@
\usepackage[margin=2.5cm]{geometry}
\usepackage{arara}
-\newcommand{\araraversion}{5.1}
+\newcommand{\araraversion}{5.1.1}
\begin{document}
diff --git a/support/arara/doc/chapters/concepts.tex b/support/arara/doc/chapters/concepts.tex
index ef71eb10ab..87fac0469f 100644
--- a/support/arara/doc/chapters/concepts.tex
+++ b/support/arara/doc/chapters/concepts.tex
@@ -375,7 +375,7 @@ It is important to observe that, in this case, \rbox{doc3.tex} is a plain \TeX\
Even when a directive is interpreted with a file other than the one being processed by \arara\ (through the magic of the \abox{files} parameter), it is possible to use helper methods in the rule context to get access to the original file and reference. Such methods are detailed later on, in Section~\ref{sec:files}, on page~\pageref{sec:files}.
-\section{Important changes in version 5.0}
+\section{Important changes in the 5.x series}
\label{sec:migrationguide}
\begin{messagebox}{A note to users}{araracolour}{\icattention}{white}
@@ -473,4 +473,8 @@ From version 5.0 on, \arara\ is able to compile multiple files at once by provid
A common problem when compiling \TeX\ files are specialties of \TeX\ engines looking for files. Usually, you should call an engine from the directory where the target file is located. \arara\ had the same restriction in that case. Now you can instruct \arara\ to operate from another directory lifting that constraint. See \autoref{chap:commandline} for details.
\end{messagebox}
+\begin{messagebox}{Relative paths for \TeX\ engines and tools}{araracolour}{\icinfo}{white}
+It is worth mentioning that, although \arara\ provides the absolute, canonical path of the provided files in the rule context through the \abox{reference} variable, \TeX-related tools rely on the file name as a relative path with \mtbox{reference.getName()}. This decision was made due to path constraints in these tools, as well as to ensure auxiliary files are written in their correct locations. If you need to run \arara\ on a file located in another directory, refer to \autoref{chap:commandline}, as there is an specific command line option for that purpose.
+\end{messagebox}
+
This section pretty much covered the basics of the changes to this version. Of course, it is highly advisable to make use of the new features available in \arara\ 5.0 for achieving better results. If you need any help, please do not hesitate to contact us. See Section~\ref{sec:support}, on page~\pageref{sec:support}, for more details on how to get help.
diff --git a/support/arara/scripts/rules/animate.yaml b/support/arara/scripts/rules/animate.yaml
index c2c3c3fcdc..769ceaecee 100644
--- a/support/arara/scripts/rules/animate.yaml
+++ b/support/arara/scripts/rules/animate.yaml
@@ -14,8 +14,8 @@ commands:
command: >
@{
prefix = [];
- input = getBasename(reference).concat('.pdf');
- output = getBasename(reference).concat('.gif');
+ input = getBasename(reference.getName()).concat('.pdf');
+ output = getBasename(reference.getName()).concat('.gif');
return getCommand(program, '-delay', delay, '-loop',
loop, '-density', density, options, input, output);
}
diff --git a/support/arara/scripts/rules/asymptote.yaml b/support/arara/scripts/rules/asymptote.yaml
index 8ebf68eeda..232213f73d 100644
--- a/support/arara/scripts/rules/asymptote.yaml
+++ b/support/arara/scripts/rules/asymptote.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('asy', color, engine, twice,
- format, output, options, reference);
+ format, output, options, reference.getName());
}
arguments:
- identifier: color
diff --git a/support/arara/scripts/rules/bib2gls.yaml b/support/arara/scripts/rules/bib2gls.yaml
index 0fa6f4d1a2..513a7207f7 100644
--- a/support/arara/scripts/rules/bib2gls.yaml
+++ b/support/arara/scripts/rules/bib2gls.yaml
@@ -62,7 +62,8 @@ commands:
return getCommand('bib2gls', dir, trans, group, interpret,
breakspace, trimfields, recordcount, recordcountunit,
cite, verbose, merge, locale, uniscript, packages,
- ignore, custom, mapformats, options, getBasename(reference));
+ ignore, custom, mapformats, options,
+ getBasename(reference.getName()));
}
}
arguments:
@@ -79,7 +80,7 @@ arguments:
throwError('Forbidden transcript extension');
}
- return ['--log-file', getBasename(reference)+"."+parameters.trans]
+ return ['--log-file', getBasename(reference.getName())+"."+parameters.trans]
}
- identifier: locale
flag: >
diff --git a/support/arara/scripts/rules/biber.yaml b/support/arara/scripts/rules/biber.yaml
index 1edafe1e96..6399df64fb 100644
--- a/support/arara/scripts/rules/biber.yaml
+++ b/support/arara/scripts/rules/biber.yaml
@@ -16,7 +16,8 @@ commands:
return getCommand('biber', '--tool', options);
}
else {
- return getCommand('biber', options, getBasename(reference));
+ return getCommand('biber', options,
+ getBasename(reference.getName()));
}
}
arguments:
diff --git a/support/arara/scripts/rules/bibtex.yaml b/support/arara/scripts/rules/bibtex.yaml
index 73016ff43e..a845758440 100644
--- a/support/arara/scripts/rules/bibtex.yaml
+++ b/support/arara/scripts/rules/bibtex.yaml
@@ -12,7 +12,7 @@ commands:
- name: The BibTeX reference management software
command: >
@{
- return getCommand('bibtex', options, getBasename(reference))
+ return getCommand('bibtex', options, getBasename(reference.getName()))
}
arguments:
- identifier: options
diff --git a/support/arara/scripts/rules/bibtex8.yaml b/support/arara/scripts/rules/bibtex8.yaml
index 310cd96c2c..2526c82b5a 100644
--- a/support/arara/scripts/rules/bibtex8.yaml
+++ b/support/arara/scripts/rules/bibtex8.yaml
@@ -12,7 +12,7 @@ commands:
- name: An 8-bit implementation of BibTeX 0.99 with a very large capacity
command: >
@{
- return getCommand('bibtex8', options, getBasename(reference));
+ return getCommand('bibtex8', options, getBasename(reference.getName()));
}
arguments:
- identifier: options
diff --git a/support/arara/scripts/rules/bibtexu.yaml b/support/arara/scripts/rules/bibtexu.yaml
index fa29aac8d2..708a3ebfb6 100644
--- a/support/arara/scripts/rules/bibtexu.yaml
+++ b/support/arara/scripts/rules/bibtexu.yaml
@@ -12,7 +12,7 @@ commands:
- name: An 8-bit implementation of BibTeX 0.99 with a very large capacity
command: >
@{
- return getCommand('bibtexu', options, getBasename(reference));
+ return getCommand('bibtexu', options, getBasename(reference.getName()));
}
arguments:
- identifier: options
diff --git a/support/arara/scripts/rules/context.yaml b/support/arara/scripts/rules/context.yaml
index 5b8546486e..bf5b1c5b04 100644
--- a/support/arara/scripts/rules/context.yaml
+++ b/support/arara/scripts/rules/context.yaml
@@ -15,7 +15,7 @@ commands:
return getCommand('context', make, ctx, interface, autopdf, purge,
modules, environments, mode, path, arguments,
trackers, directives, silent, errors, interaction,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: make
diff --git a/support/arara/scripts/rules/csplain.yaml b/support/arara/scripts/rules/csplain.yaml
index f5447599ca..720cd0cc8f 100644
--- a/support/arara/scripts/rules/csplain.yaml
+++ b/support/arara/scripts/rules/csplain.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('csplain', interaction, draft,
- shell, synctex, options, reference);
+ shell, synctex, options, reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/detex.yaml b/support/arara/scripts/rules/detex.yaml
index d90d779d6a..f94c7a274e 100644
--- a/support/arara/scripts/rules/detex.yaml
+++ b/support/arara/scripts/rules/detex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
c = getCommand('detex', references, mode, follow, math, spaces,
- words, environments, reference);
+ words, environments, reference.getName());
if (isEmpty(output)) {
return c;
}
diff --git a/support/arara/scripts/rules/dvipdfm.yaml b/support/arara/scripts/rules/dvipdfm.yaml
index bbd5be92c7..c4f44309b8 100644
--- a/support/arara/scripts/rules/dvipdfm.yaml
+++ b/support/arara/scripts/rules/dvipdfm.yaml
@@ -12,7 +12,7 @@ commands:
- name: The DVIPDFM program
command: >
@{
- base = getBasename(reference).concat('.dvi');
+ base = getBasename(reference.getName()).concat('.dvi');
out = getBasename(output).concat('.pdf');
return getCommand('dvipdfm', base, '-o', out, options);
}
@@ -24,7 +24,7 @@ arguments:
}
default: >
@{
- reference
+ reference.getName()
}
- identifier: options
flag: >
diff --git a/support/arara/scripts/rules/dvipdfmx.yaml b/support/arara/scripts/rules/dvipdfmx.yaml
index d62f89968d..b9b73319e3 100644
--- a/support/arara/scripts/rules/dvipdfmx.yaml
+++ b/support/arara/scripts/rules/dvipdfmx.yaml
@@ -12,7 +12,7 @@ commands:
- name: The DVIPDFMX program
command: >
@{
- base = getBasename(reference).concat('.dvi');
+ base = getBasename(reference.getName()).concat('.dvi');
out = getBasename(output).concat('.pdf');
return getCommand('dvipdfmx', base, '-o', out, options);
}
@@ -24,7 +24,7 @@ arguments:
}
default: >
@{
- reference
+ reference.getName()
}
- identifier: options
flag: >
diff --git a/support/arara/scripts/rules/dvips.yaml b/support/arara/scripts/rules/dvips.yaml
index 68196e09dd..78a2cff58d 100644
--- a/support/arara/scripts/rules/dvips.yaml
+++ b/support/arara/scripts/rules/dvips.yaml
@@ -12,7 +12,7 @@ commands:
- name: The DVIPS program
command: >
@{
- base = getBasename(reference).concat('.dvi');
+ base = getBasename(reference.getName()).concat('.dvi');
out = getBasename(output).concat('.ps');
return getCommand('dvips', base, '-o', out, options);
}
@@ -24,7 +24,7 @@ arguments:
}
default: >
@{
- reference
+ reference.getName()
}
- identifier: options
flag: >
diff --git a/support/arara/scripts/rules/dvipspdf.yaml b/support/arara/scripts/rules/dvipspdf.yaml
index a4888325e6..68c12dde34 100644
--- a/support/arara/scripts/rules/dvipspdf.yaml
+++ b/support/arara/scripts/rules/dvipspdf.yaml
@@ -12,14 +12,14 @@ commands:
- name: The DVIPS program
command: >
@{
- base = getBasename(reference).concat('.dvi');
- out = getBasename(reference).concat('.ps');
+ base = getBasename(reference.getName()).concat('.dvi');
+ out = getBasename(reference.getName()).concat('.ps');
return getCommand('dvips', base, '-o', out, options1);
}
- name: The PS2PDF program
command: >
@{
- base = getBasename(reference).concat('.ps');
+ base = getBasename(reference.getName()).concat('.ps');
out = getBasename(output).concat('.pdf');
return getCommand('ps2pdf', options2, base, '-o', out);
}
@@ -31,7 +31,7 @@ arguments:
}
default: >
@{
- reference
+ reference.getName()
}
- identifier: options1
flag: >
diff --git a/support/arara/scripts/rules/dvisvgm.yaml b/support/arara/scripts/rules/dvisvgm.yaml
index d9d094ac3e..d0bae984de 100644
--- a/support/arara/scripts/rules/dvisvgm.yaml
+++ b/support/arara/scripts/rules/dvisvgm.yaml
@@ -12,7 +12,7 @@ commands:
- name: The dvisvgm program
command: >
@{
- base = getBasename(reference).concat('.dvi');
+ base = getBasename(reference.getName()).concat('.dvi');
return getCommand('dvisvgm', base, options);
}
arguments:
diff --git a/support/arara/scripts/rules/etex.yaml b/support/arara/scripts/rules/etex.yaml
index 0411915ef7..e039b143da 100644
--- a/support/arara/scripts/rules/etex.yaml
+++ b/support/arara/scripts/rules/etex.yaml
@@ -12,7 +12,8 @@ commands:
- name: Extended TeX engine
command: >
@{
- return getCommand('etex', interaction, shell, options, reference);
+ return getCommand('etex', interaction, shell, options,
+ reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/fig2dev.yaml b/support/arara/scripts/rules/fig2dev.yaml
index fd36069205..4e796e5c4d 100644
--- a/support/arara/scripts/rules/fig2dev.yaml
+++ b/support/arara/scripts/rules/fig2dev.yaml
@@ -12,7 +12,7 @@ commands:
- name: The fig2dev program
command: >
@{
- input = getBasename(reference).concat('.fig');
+ input = getBasename(reference.getName()).concat('.fig');
return getCommand('fig2dev', language, magnification, font, size,
options, input, output);
}
diff --git a/support/arara/scripts/rules/frontespizio.yaml b/support/arara/scripts/rules/frontespizio.yaml
index 3b0ab0a853..2cabec38a0 100644
--- a/support/arara/scripts/rules/frontespizio.yaml
+++ b/support/arara/scripts/rules/frontespizio.yaml
@@ -14,18 +14,19 @@ commands:
- name: The engine
command: >
@{
- return getCommand(engine, interaction, shell, options, reference)
+ return getCommand(engine, interaction, shell, options,
+ reference.getName())
}
- name: The frontispiece
command: >
@{
- base = getBasename(reference).concat('-frn');
+ base = getBasename(reference.getName()).concat('-frn');
return getCommand(engine, interaction, shell, base);
}
- name: The DVIPS program
command: >
@{
- base = getBasename(reference).concat('-frn');
+ base = getBasename(reference.getName()).concat('-frn');
eps = base.concat('.eps');
return isTrue(engine == 'latex', getCommand('dvips', '-o',
eps, base), '');
@@ -33,7 +34,8 @@ commands:
- name: The engine
command: >
@{
- return getCommand(engine, interaction, shell, options, reference);
+ return getCommand(engine, interaction, shell, options,
+ reference.getName());
}
arguments:
- identifier: engine
diff --git a/support/arara/scripts/rules/indent.yaml b/support/arara/scripts/rules/indent.yaml
index 4471d3728c..b6dce8b2d5 100644
--- a/support/arara/scripts/rules/indent.yaml
+++ b/support/arara/scripts/rules/indent.yaml
@@ -14,8 +14,8 @@ commands:
command: >
@{
return getCommand('latexindent', silent, trace, screenlog,
- settings, cruft, overwrite, output, reference, modifylinebreaks,
- replacement, options, logfile);
+ settings, cruft, overwrite, output, reference.getName(),
+ modifylinebreaks, replacement, options, logfile);
}
arguments:
- identifier: silent
diff --git a/support/arara/scripts/rules/knitr.yaml b/support/arara/scripts/rules/knitr.yaml
index 3a3d5dfead..a2e5fcd7bf 100644
--- a/support/arara/scripts/rules/knitr.yaml
+++ b/support/arara/scripts/rules/knitr.yaml
@@ -19,7 +19,7 @@ commands:
elements.add('envir = ' + envir);
elements.add('encoding = ' + encoding);
return getCommand('Rscript', '-e',
- 'library(knitr); knit("' + reference + '", ' +
+ 'library(knitr); knit("' + reference.getName() + '", ' +
'output = ' + isEmpty(output, 'NULL', '"' + output + '"') + ', ' +
String.join(', ', elements) + ')');
}
diff --git a/support/arara/scripts/rules/latex.yaml b/support/arara/scripts/rules/latex.yaml
index 268ff1f707..fc96395c23 100644
--- a/support/arara/scripts/rules/latex.yaml
+++ b/support/arara/scripts/rules/latex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand(branch, interaction, draft, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: branch
diff --git a/support/arara/scripts/rules/latexmk.yaml b/support/arara/scripts/rules/latexmk.yaml
index 0f39e9d709..455f942fdb 100644
--- a/support/arara/scripts/rules/latexmk.yaml
+++ b/support/arara/scripts/rules/latexmk.yaml
@@ -17,7 +17,7 @@ commands:
}
else {
return getCommand('latexmk', isEmpty(program, engine,
- program), options, reference);
+ program), options, reference.getName());
}
}
arguments:
diff --git a/support/arara/scripts/rules/luahbtex.yaml b/support/arara/scripts/rules/luahbtex.yaml
index 1557fa0614..cf4fde56e4 100644
--- a/support/arara/scripts/rules/luahbtex.yaml
+++ b/support/arara/scripts/rules/luahbtex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('luahbtex', interaction, draft, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/lualatex.yaml b/support/arara/scripts/rules/lualatex.yaml
index 68f14d78e9..de68a48b8f 100644
--- a/support/arara/scripts/rules/lualatex.yaml
+++ b/support/arara/scripts/rules/lualatex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand(branch, interaction, draft, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: branch
diff --git a/support/arara/scripts/rules/luatex.yaml b/support/arara/scripts/rules/luatex.yaml
index 91099219f6..03a726fa64 100644
--- a/support/arara/scripts/rules/luatex.yaml
+++ b/support/arara/scripts/rules/luatex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('luatex', interaction, draft, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/makeglossaries.yaml b/support/arara/scripts/rules/makeglossaries.yaml
index 861330045e..7cb47cc5df 100644
--- a/support/arara/scripts/rules/makeglossaries.yaml
+++ b/support/arara/scripts/rules/makeglossaries.yaml
@@ -14,7 +14,8 @@ commands:
@{
if (isEmpty(clean))
{
- return getCommand('makeglossaries', options, getBasename(reference));
+ return getCommand('makeglossaries', options,
+ getBasename(reference.getName()));
}
else {
prefix = [];
diff --git a/support/arara/scripts/rules/makeglossarieslite.yaml b/support/arara/scripts/rules/makeglossarieslite.yaml
index 177ba6971f..c384179f44 100644
--- a/support/arara/scripts/rules/makeglossarieslite.yaml
+++ b/support/arara/scripts/rules/makeglossarieslite.yaml
@@ -12,7 +12,8 @@ commands:
- name: The MakeGlossariesLite software
command: >
@{
- return getCommand('makeglossaries-lite', options, getBasename(reference));
+ return getCommand('makeglossaries-lite', options,
+ getBasename(reference.getName()));
}
arguments:
- identifier: options
diff --git a/support/arara/scripts/rules/makeindex.yaml b/support/arara/scripts/rules/makeindex.yaml
index 319ef71438..25b9e44c90 100644
--- a/support/arara/scripts/rules/makeindex.yaml
+++ b/support/arara/scripts/rules/makeindex.yaml
@@ -12,7 +12,7 @@ commands:
- name: The MakeIndex software
command: >
@{
- base = getBasename(reference);
+ base = getBasename(reference.getName());
infile = base.concat('.').concat(input);
outfile = [ '-o', base.concat('.').concat(output) ];
logfile = [ '-t', base.concat('.').concat(log) ];
diff --git a/support/arara/scripts/rules/metapost.yaml b/support/arara/scripts/rules/metapost.yaml
index b3a58645dd..e334210ce5 100644
--- a/support/arara/scripts/rules/metapost.yaml
+++ b/support/arara/scripts/rules/metapost.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('mpost', interaction, numbersystem,
- options, reference);
+ options, reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/nomencl.yaml b/support/arara/scripts/rules/nomencl.yaml
index f859f72881..4672cb4ea9 100644
--- a/support/arara/scripts/rules/nomencl.yaml
+++ b/support/arara/scripts/rules/nomencl.yaml
@@ -12,8 +12,8 @@ commands:
- name: The Nomenclature software
command: >
@{
- nlo = getBasename(reference).concat('.nlo');
- nls = getBasename(reference).concat('.nls');
+ nlo = getBasename(reference.getName()).concat('.nlo');
+ nls = getBasename(reference.getName()).concat('.nls');
return getCommand('makeindex', options, nlo, style, '-o', nls);
}
arguments:
diff --git a/support/arara/scripts/rules/pbibtex.yaml b/support/arara/scripts/rules/pbibtex.yaml
index 1a0347da76..a313b7fe92 100644
--- a/support/arara/scripts/rules/pbibtex.yaml
+++ b/support/arara/scripts/rules/pbibtex.yaml
@@ -12,7 +12,7 @@ commands:
- name: The pBibTeX reference management software
command: >
@{
- return getCommand('pbibtex', options, getBasename(reference))
+ return getCommand('pbibtex', options, getBasename(reference.getName()))
}
arguments:
- identifier: options
diff --git a/support/arara/scripts/rules/pdfcsplain.yaml b/support/arara/scripts/rules/pdfcsplain.yaml
index 88d2f7b31e..079440628a 100644
--- a/support/arara/scripts/rules/pdfcsplain.yaml
+++ b/support/arara/scripts/rules/pdfcsplain.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('pdfcsplain', interaction, draft, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/pdflatex.yaml b/support/arara/scripts/rules/pdflatex.yaml
index 385e99b997..c1ee2f9077 100644
--- a/support/arara/scripts/rules/pdflatex.yaml
+++ b/support/arara/scripts/rules/pdflatex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand(branch, interaction, draft, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: branch
diff --git a/support/arara/scripts/rules/pdftex.yaml b/support/arara/scripts/rules/pdftex.yaml
index 45a7e32f24..c6699b7dca 100644
--- a/support/arara/scripts/rules/pdftex.yaml
+++ b/support/arara/scripts/rules/pdftex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('pdftex', interaction, draft, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/pdftk.yaml b/support/arara/scripts/rules/pdftk.yaml
index 73ee784417..a457d67d53 100644
--- a/support/arara/scripts/rules/pdftk.yaml
+++ b/support/arara/scripts/rules/pdftk.yaml
@@ -12,7 +12,7 @@ commands:
- name: PDFtk
command: >
@{
- input = getBasename(reference).concat('.pdf');
+ input = getBasename(reference.getName()).concat('.pdf');
return getCommand('pdftk', input, options);
}
arguments:
diff --git a/support/arara/scripts/rules/platex.yaml b/support/arara/scripts/rules/platex.yaml
index 0c1d62cacd..edf5d4864b 100644
--- a/support/arara/scripts/rules/platex.yaml
+++ b/support/arara/scripts/rules/platex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand(branch, interaction, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: branch
diff --git a/support/arara/scripts/rules/ps2pdf.yaml b/support/arara/scripts/rules/ps2pdf.yaml
index db220f3037..dcc49f87b9 100644
--- a/support/arara/scripts/rules/ps2pdf.yaml
+++ b/support/arara/scripts/rules/ps2pdf.yaml
@@ -12,7 +12,7 @@ commands:
- name: The PS2PDF program
command: >
@{
- infile = getBasename(reference).concat('.ps');
+ infile = getBasename(reference.getName()).concat('.ps');
outfile = getBasename(output).concat('.pdf');
return getCommand('ps2pdf', options, infile, outfile);
}
@@ -24,7 +24,7 @@ arguments:
}
default: >
@{
- reference
+ reference.getName()
}
- identifier: options
flag: >
diff --git a/support/arara/scripts/rules/ptex.yaml b/support/arara/scripts/rules/ptex.yaml
index cb5103fa36..9367704cb9 100644
--- a/support/arara/scripts/rules/ptex.yaml
+++ b/support/arara/scripts/rules/ptex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('ptex', interaction, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/sketch.yaml b/support/arara/scripts/rules/sketch.yaml
index 0970d2e5b8..e7bae9b329 100644
--- a/support/arara/scripts/rules/sketch.yaml
+++ b/support/arara/scripts/rules/sketch.yaml
@@ -13,8 +13,9 @@ commands:
- name: The Sketch software
command: >
@{
- output = getBasename(reference).concat('.tex');
- return getCommand('sketch', options, reference, '-o', output);
+ output = getBasename(reference.getName()).concat('.tex');
+ return getCommand('sketch', options, reference.getName(),
+ '-o', output);
}
arguments:
- identifier: options
diff --git a/support/arara/scripts/rules/tex.yaml b/support/arara/scripts/rules/tex.yaml
index c682ea6b91..d036e5cb0d 100644
--- a/support/arara/scripts/rules/tex.yaml
+++ b/support/arara/scripts/rules/tex.yaml
@@ -12,7 +12,8 @@ commands:
- name: TeX engine
command: >
@{
- return getCommand('tex', interaction, shell, options, reference);
+ return getCommand('tex', interaction, shell, options,
+ reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/texcount.yaml b/support/arara/scripts/rules/texcount.yaml
index 79506c806c..694ac6d481 100644
--- a/support/arara/scripts/rules/texcount.yaml
+++ b/support/arara/scripts/rules/texcount.yaml
@@ -13,7 +13,8 @@ commands:
command: >
@{
return getCommand('texcount', rules, verbosity, strict, html,
- total, unicode, options, output, reference);
+ total, unicode, options, output,
+ reference.getName());
}
arguments:
- identifier: rules
diff --git a/support/arara/scripts/rules/texindy.yaml b/support/arara/scripts/rules/texindy.yaml
index 6d747f7217..45c4637889 100644
--- a/support/arara/scripts/rules/texindy.yaml
+++ b/support/arara/scripts/rules/texindy.yaml
@@ -12,7 +12,7 @@ commands:
- name: The TeXindy software
command: >
@{
- base = getBasename(reference);
+ base = getBasename(reference.getName());
infile = base.concat('.').concat(input);
outfile = [ '-o', base.concat('.').concat(output) ];
logfile = [ '-t', base.concat('.').concat(log) ];
diff --git a/support/arara/scripts/rules/tikzmake.yaml b/support/arara/scripts/rules/tikzmake.yaml
index 0569ba9a65..69e72c4885 100644
--- a/support/arara/scripts/rules/tikzmake.yaml
+++ b/support/arara/scripts/rules/tikzmake.yaml
@@ -13,7 +13,7 @@ commands:
- name: TikZ list-and-make engine
command: >
@{
- makefile = getBasename(reference).concat('.makefile');
+ makefile = getBasename(reference.getName()).concat('.makefile');
return getCommand('make', force, jobs, options, '-f', makefile);
}
arguments:
diff --git a/support/arara/scripts/rules/upbibtex.yaml b/support/arara/scripts/rules/upbibtex.yaml
index d6593dea57..bb32250c6c 100644
--- a/support/arara/scripts/rules/upbibtex.yaml
+++ b/support/arara/scripts/rules/upbibtex.yaml
@@ -12,7 +12,8 @@ commands:
- name: The upBibTeX reference management software
command: >
@{
- return getCommand('upbibtex', options, getBasename(reference))
+ return getCommand('upbibtex', options,
+ getBasename(reference.getName()))
}
arguments:
- identifier: options
diff --git a/support/arara/scripts/rules/uplatex.yaml b/support/arara/scripts/rules/uplatex.yaml
index c0f2cdf3cd..c2690d1105 100644
--- a/support/arara/scripts/rules/uplatex.yaml
+++ b/support/arara/scripts/rules/uplatex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand(branch, interaction, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: branch
diff --git a/support/arara/scripts/rules/uptex.yaml b/support/arara/scripts/rules/uptex.yaml
index 6163e0ae69..fb7a2282fd 100644
--- a/support/arara/scripts/rules/uptex.yaml
+++ b/support/arara/scripts/rules/uptex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('uptex', interaction, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/xdvipdfmx.yaml b/support/arara/scripts/rules/xdvipdfmx.yaml
index 75bf182a4d..6c569ef31c 100644
--- a/support/arara/scripts/rules/xdvipdfmx.yaml
+++ b/support/arara/scripts/rules/xdvipdfmx.yaml
@@ -12,7 +12,7 @@ commands:
- name: The XDVIPDFMX program
command: >
@{
- infile = getBasename(reference).concat('.dvi');
+ infile = getBasename(reference.getName()).concat('.dvi');
outfile = getBasename(output).concat('.pdf');
return getCommand('xdvipdfmx', infile, '-o', outfile, options);
}
@@ -24,7 +24,7 @@ arguments:
}
default: >
@{
- reference
+ reference.getName()
}
- identifier: options
flag: >
diff --git a/support/arara/scripts/rules/xelatex.yaml b/support/arara/scripts/rules/xelatex.yaml
index b94e35f797..021f4cea6f 100644
--- a/support/arara/scripts/rules/xelatex.yaml
+++ b/support/arara/scripts/rules/xelatex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand(branch, interaction, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: branch
diff --git a/support/arara/scripts/rules/xetex.yaml b/support/arara/scripts/rules/xetex.yaml
index faefd9ca17..687b08f200 100644
--- a/support/arara/scripts/rules/xetex.yaml
+++ b/support/arara/scripts/rules/xetex.yaml
@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('xetex', interaction, shell,
- synctex, options, reference);
+ synctex, options, reference.getName());
}
arguments:
- identifier: interaction
diff --git a/support/arara/scripts/rules/xindy.yaml b/support/arara/scripts/rules/xindy.yaml
index f1c12f0c1d..161ae60158 100644
--- a/support/arara/scripts/rules/xindy.yaml
+++ b/support/arara/scripts/rules/xindy.yaml
@@ -12,7 +12,7 @@ commands:
- name: The Xindy software
command: >
@{
- base = getBasename(reference);
+ base = getBasename(reference.getName());
infile = base.concat('.').concat(input);
outfile = [ '-o', base.concat('.').concat(output) ];
logfile = [ '-t', base.concat('.').concat(log) ];
diff --git a/support/pkgcheck/CHANGES.md b/support/pkgcheck/CHANGES.md
index ba15e0ae9e..dab0c748ab 100644
--- a/support/pkgcheck/CHANGES.md
+++ b/support/pkgcheck/CHANGES.md
@@ -122,6 +122,21 @@
check for latex-dev in the path names in the TDS zip archive
- if a file in a generated file statement contains a directory part it was correctly
recognized but not compared correctly to the contents of the TDS zip archive
+
2020-02-07 (2.0.1)
- - Use the `-a` (convert text files) flag when unzipping the TDS archive
+ - use the `-a` (convert text files) flag when temporarily unzipping the TDS archive
- crates update
+
+2020-04-12 (2.1.0)
+ - add new test case e0033
+ - don't issue error messages when a .bat file has 0755 permission
+ - improvements regarding detection of generated files (error message e0019)
+ - generated REAME files caused e0019 error message when they were specified with
+ a relative path name in the `\generate` statement in the .dtx resp. .ins file
+ - don't issue error message when a pdf file, generated by .dtx/.ins, exists
+ - don't issue error message when an existing .ins file is generated by a .dtx file
+ - improved text in error message e0019
+ - call pdfinfo and unzip without specifying an absolute path so that it gets found
+ when it is outside of /usr/bin (reported by Arthur Reutenauer)
+
+
diff --git a/support/pkgcheck/Cargo.toml b/support/pkgcheck/Cargo.toml
index 0943bc76d7..39fe8901b5 100644
--- a/support/pkgcheck/Cargo.toml
+++ b/support/pkgcheck/Cargo.toml
@@ -1,11 +1,16 @@
[package]
name = "pkgcheck"
-version = "2.0.1"
+version = "2.1.0"
authors = ["Manfred Lotz <manfred@ctan.org>"]
description = "Command-line tool to check packages uploaded to CTAN."
license = "MIT/Apache-2.0"
edition = "2018"
+# with this option binaries are smaller
+# https://doc.rust-lang.org/edition-guide/rust-2018/error-handling-and-panics/aborting-on-panic.html
+[profile.release]
+panic = "abort"
+
[dependencies]
structopt = "0.3"
walkdir = "2.3"
@@ -23,7 +28,7 @@ reqwest = { version = "0.10", features = ["blocking", "gzip"] }
lazy_static = "1"
tempdir = "0.3"
-assert_cmd = "0.12"
+assert_cmd = "1"
predicates = "1"
openssl-probe = "0.1.2"
pest = "2.1"
diff --git a/support/pkgcheck/bin/pkgcheck b/support/pkgcheck/bin/pkgcheck
index 5ab0dfe212..c00875db43 100755
--- a/support/pkgcheck/bin/pkgcheck
+++ b/support/pkgcheck/bin/pkgcheck
Binary files differ
diff --git a/support/pkgcheck/docs/errorsd.tex b/support/pkgcheck/docs/errorsd.tex
index e3e9cc9b5f..33e2ea6fd9 100644
--- a/support/pkgcheck/docs/errorsd.tex
+++ b/support/pkgcheck/docs/errorsd.tex
@@ -183,10 +183,11 @@ package which easily can be generated from other files in the
submission.
Exceptions are the \texttt{README} files of the package, i.e.
-\texttt{README}, \texttt{README.md} or \texttt{README.txt}.
+\texttt{README}, \texttt{README.md} or \texttt{README.txt}, or
+\texttt{.pdf} files.
-Starting with version 1.1.0 \texttt{pkgcheck} also detects generated
-files if they are in a different directory in the package.
+\texttt{pkgcheck} detects generated files anywhere in the package
+directory tree.
For more details refer to:
\href{http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html\#nogeneratedfiles}{http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html\#nogeneratedfiles}
diff --git a/support/pkgcheck/docs/pkgcheck.pdf b/support/pkgcheck/docs/pkgcheck.pdf
index dd1f384a45..cbad89da3d 100644
--- a/support/pkgcheck/docs/pkgcheck.pdf
+++ b/support/pkgcheck/docs/pkgcheck.pdf
Binary files differ
diff --git a/support/pkgcheck/docs/title.tex b/support/pkgcheck/docs/title.tex
index 5840449306..de019a5346 100644
--- a/support/pkgcheck/docs/title.tex
+++ b/support/pkgcheck/docs/title.tex
@@ -1 +1 @@
-\title{pkgcheck Utility, v2.0.1}
+\title{pkgcheck Utility, v2.1.0}
diff --git a/support/pkgcheck/src/generate.pest.md b/support/pkgcheck/src/generate.pest.md
index 643fe57750..8891a57f93 100644
--- a/support/pkgcheck/src/generate.pest.md
+++ b/support/pkgcheck/src/generate.pest.md
@@ -1,4 +1,4 @@
-# Some notes about gparser.pest
+# Some notes about generate.pest
## COMMENT and WHITESPACE
@@ -11,5 +11,5 @@ The Pest book at https://pest.rs/book/grammars/syntax.html says:
> they will be implicitly inserted at every sequence and between every repetition (except in atomic rules).
-Therefore COMMENT and WHITESPACE are defined in `gparser.pest`.
+Therefore COMMENT and WHITESPACE are defined in `generate.pest`.
diff --git a/support/pkgcheck/src/main.rs b/support/pkgcheck/src/main.rs
index de0d3b3cb6..cbb678729f 100644
--- a/support/pkgcheck/src/main.rs
+++ b/support/pkgcheck/src/main.rs
@@ -177,10 +177,8 @@ fn check_readme_inner(fname: &str, f: &std::fs::File) -> bool {
result
}
-fn is_readme(entry: &DirEntry) -> bool {
- let r = entry.file_name().to_str().unwrap();
-
- match r {
+fn is_readme(entry: &str) -> bool {
+ match entry {
"README" | "README.txt" | "README.md" => true,
_ => false,
}
@@ -466,6 +464,7 @@ fn check_generated_files(entry: &str, generated: &mut GeneratedHashMap) {
// unwrap() is ok here as we only call this function for files,
// specifically .ins or .dtx files
let entry_fname = filename(entry).unwrap().to_string();
+ // the name of the .ins resp. .dtx without extension
let entry_base = &entry_fname[0..entry_fname.len() - 4];
let fhdl = File::open(&entry);
@@ -479,32 +478,35 @@ fn check_generated_files(entry: &str, generated: &mut GeneratedHashMap) {
gparser::parse_generate(&String::from_utf8_lossy(&buf.clone()))
{
for fname in found {
+ // If the filename in the 'file{} statement contains `\jobname`
+ // we replace jobname with the .dtx resp. .ins filename (without extension)
+ // before we investigate further
+ let fname1 = fname.replace("\\jobname", entry_base);
+
+ // If the filename in the generate statement contains a path component
+ // we ignore it so that a generated file will be reported even if it is
+ // in a different place in the package directory which sometimes
+ // happens in uploaded packages
+ let fname_opt = utils::filename(&fname1);
+ if fname_opt.is_none() {
+ continue;
+ }
+ let filename = fname_opt.unwrap();
+
// As we request a README in the top level directory of
// a package we ignore if a README was generated by an
// .ins or .dtx file
// CAVEAT: If this happens in a subdirectory it could be an error!!!!
- if fname == "README" || fname == "README.txt" || fname == "README.md" {
+ if is_readme(&filename) {
continue;
}
- // If the filename in the 'file{} statement is jobname.<ext>
- // we replace jobname with the filename before we investigate further
- let fname_x = if fname.starts_with("\\jobname") {
- let ext = match get_extension_from_filename(&fname) {
- Some(e) => e,
- None => "",
- };
- format!("{}.{}", entry_base, ext)
- } else {
- fname.to_string()
- };
-
- // If the filename in the generate statement contains a path component
- // we ignore it so that a generated file will be reported even if it is
- // in a different place in the package directory
- if let Some(pb) = utils::filename(&fname_x) {
- generated.entry(pb.to_string()).or_insert_with(|| entry.to_string());
+ // Ignore generated pdf files
+ if fname.ends_with(".pdf") {
+ continue;
}
+
+ generated.entry(filename.to_string()).or_insert_with(|| entry.to_string());
}
};
}
@@ -542,7 +544,7 @@ fn check_tds_archive_name(tds_zip: &Option<String>) -> Option<String> {
}
fn unzip_tds_archive(tds_zip: &str, tmp_dir: &str) {
- match run_cmd("/usr/bin/unzip", &["-a", "-q", "-d", tmp_dir, &tds_zip]) {
+ match run_cmd("unzip", &["-a", "-q", "-d", tmp_dir, &tds_zip]) {
CmdReturn { status: true, .. } => (),
CmdReturn {
status: false,
@@ -955,7 +957,7 @@ fn check_package(root: &str, tds_zip: &Option<String>) -> Option<DupHashes> {
FileKind::Symlink(pd.clone()),
));
}
- if is_readme(&dir_entry) {
+ if is_readme(&file_name) {
readme_found = true;
file_names.insert(
p,
@@ -1018,7 +1020,7 @@ fn check_package(root: &str, tds_zip: &Option<String>) -> Option<DupHashes> {
.push(PathBuf::from(&dir_entry_str));
}
- if is_readme(&dir_entry) {
+ if is_readme(&file_name) {
// We want to deal with README files only if they are
// in the root directory of the package.
let f = format!(
@@ -1302,12 +1304,16 @@ fn print_casefolding(hashes: &HashMap<PathBuf, Vec<(PathBuf, FileKind)>>) {
}
}
-fn print_generated(hashes: &HashMap<PathBuf, Vec<PathBuf>>, generated: &GeneratedHashMap) {
+fn print_generated(doublenames: &HashMap<PathBuf, Vec<PathBuf>>, generated: &GeneratedHashMap) {
+ // `k` is generated by `gen`
for (k, gen) in generated.iter() {
- let mut path = PathBuf::new();
- path.push(k);
- if hashes.contains_key(&path) {
- let v = &hashes[&path];
+ let path = PathBuf::from(k);
+ if doublenames.contains_key(&path) {
+ if k.ends_with(".ins") || k.ends_with(".pdf") {
+ //println!("key {}, gen {}", k, gen);
+ continue;
+ }
+ let v = &doublenames[&path];
for fname in v {
e0019!(fname.to_str().unwrap(), gen.as_str());
}
diff --git a/support/pkgcheck/src/messages/errorsd.rs b/support/pkgcheck/src/messages/errorsd.rs
index 09c2f4cc53..b80e4d1245 100644
--- a/support/pkgcheck/src/messages/errorsd.rs
+++ b/support/pkgcheck/src/messages/errorsd.rs
@@ -256,10 +256,9 @@ package which easily can be generated from other files in the
submission.
Exceptions are the README files of the package, i.e. README, README.md
-or README.txt.
+or README.txt, or .pdf files.
-Starting with version 1.1.0 pkgcheck also detects generated files if
-they are in a different directory in the package.
+pkgcheck detects generated files anywhere in the package directory tree.
For more details refer to:
http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#nogeneratedfiles
diff --git a/support/pkgcheck/src/utils.rs b/support/pkgcheck/src/utils.rs
index 8a34bfe7c1..d047a97cb0 100644
--- a/support/pkgcheck/src/utils.rs
+++ b/support/pkgcheck/src/utils.rs
@@ -333,7 +333,7 @@ pub fn _is_symlink_broken(entry: &DirEntry) -> Result<bool, io::Error> {
// returns non zero we assume that the PDF document is
// corrupted.
pub fn is_pdf_ok(fname: &str) -> CmdReturn {
- run_cmd("/usr/bin/pdfinfo", &[fname])
+ run_cmd("pdfinfo", &[fname])
}
pub fn get_perms(path: &Path) -> u32 {