From 2456710acb7b4369eabd67ab4b31297ae142bb6a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 26 Feb 2021 22:27:35 +0000 Subject: arara (26feb21) git-svn-id: svn://tug.org/texlive/trunk@57953 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/arara/arara.jar | Bin 16028309 -> 11604148 bytes Master/texmf-dist/scripts/arara/arara.sh | 2 +- Master/texmf-dist/scripts/arara/rules/animate.yaml | 56 ------ .../scripts/arara/rules/arara-rule-animate.yaml | 55 +++++ .../scripts/arara/rules/arara-rule-asymptote.yaml | 62 ++++++ .../arara/rules/arara-rule-authorindex.yaml | 53 +++++ .../scripts/arara/rules/arara-rule-bib2gls.yaml | 224 +++++++++++++++++++++ .../scripts/arara/rules/arara-rule-biber.yaml | 39 ++++ .../scripts/arara/rules/arara-rule-bibtex.yaml | 27 +++ .../scripts/arara/rules/arara-rule-bibtex8.yaml | 27 +++ .../scripts/arara/rules/arara-rule-bibtexu.yaml | 27 +++ .../scripts/arara/rules/arara-rule-clean.yaml | 50 +++++ .../scripts/arara/rules/arara-rule-context.yaml | 170 ++++++++++++++++ .../scripts/arara/rules/arara-rule-convert.yaml | 34 ++++ .../scripts/arara/rules/arara-rule-copy.yaml | 36 ++++ .../scripts/arara/rules/arara-rule-csplain.yaml | 54 +++++ .../scripts/arara/rules/arara-rule-datatooltk.yaml | 187 +++++++++++++++++ .../scripts/arara/rules/arara-rule-detex.yaml | 81 ++++++++ .../scripts/arara/rules/arara-rule-dvipdfm.yaml | 35 ++++ .../scripts/arara/rules/arara-rule-dvipdfmx.yaml | 35 ++++ .../scripts/arara/rules/arara-rule-dvips.yaml | 35 ++++ .../scripts/arara/rules/arara-rule-dvipspdf.yaml | 52 +++++ .../scripts/arara/rules/arara-rule-dvisvgm.yaml | 57 ++++++ .../scripts/arara/rules/arara-rule-etex.yaml | 44 ++++ .../scripts/arara/rules/arara-rule-fig2dev.yaml | 66 ++++++ .../arara/rules/arara-rule-frontespizio.yaml | 78 +++++++ .../arara/rules/arara-rule-ghostscript.yaml | 44 ++++ .../scripts/arara/rules/arara-rule-gnuplot.yaml | 46 +++++ .../scripts/arara/rules/arara-rule-halt.yaml | 19 ++ .../scripts/arara/rules/arara-rule-indent.yaml | 109 ++++++++++ .../scripts/arara/rules/arara-rule-knitr.yaml | 58 ++++++ .../scripts/arara/rules/arara-rule-latex.yaml | 65 ++++++ .../scripts/arara/rules/arara-rule-latexmk.yaml | 65 ++++++ .../scripts/arara/rules/arara-rule-llmk.yaml | 57 ++++++ .../scripts/arara/rules/arara-rule-ltx2any.yaml | 110 ++++++++++ .../scripts/arara/rules/arara-rule-luahbtex.yaml | 54 +++++ .../scripts/arara/rules/arara-rule-lualatex.yaml | 65 ++++++ .../scripts/arara/rules/arara-rule-luatex.yaml | 54 +++++ .../scripts/arara/rules/arara-rule-make.yaml | 46 +++++ .../arara/rules/arara-rule-makeglossaries.yaml | 90 +++++++++ .../arara/rules/arara-rule-makeglossarieslite.yaml | 28 +++ .../scripts/arara/rules/arara-rule-makeindex.yaml | 67 ++++++ .../scripts/arara/rules/arara-rule-metapost.yaml | 50 +++++ .../scripts/arara/rules/arara-rule-move.yaml | 39 ++++ .../scripts/arara/rules/arara-rule-nomencl.yaml | 35 ++++ .../scripts/arara/rules/arara-rule-pbibtex.yaml | 27 +++ .../scripts/arara/rules/arara-rule-pdfcrop.yaml | 132 ++++++++++++ .../scripts/arara/rules/arara-rule-pdfcsplain.yaml | 54 +++++ .../scripts/arara/rules/arara-rule-pdflatex.yaml | 65 ++++++ .../scripts/arara/rules/arara-rule-pdftex.yaml | 54 +++++ .../scripts/arara/rules/arara-rule-pdftk.yaml | 28 +++ .../scripts/arara/rules/arara-rule-perltex.yaml | 82 ++++++++ .../scripts/arara/rules/arara-rule-platex.yaml | 60 ++++++ .../scripts/arara/rules/arara-rule-ps2pdf.yaml | 35 ++++ .../scripts/arara/rules/arara-rule-ptex.yaml | 49 +++++ .../scripts/arara/rules/arara-rule-pythontex.yaml | 71 +++++++ .../scripts/arara/rules/arara-rule-qpdf.yaml | 28 +++ .../scripts/arara/rules/arara-rule-sage.yaml | 59 ++++++ .../scripts/arara/rules/arara-rule-sketch.yaml | 30 +++ .../scripts/arara/rules/arara-rule-songidx.yaml | 41 ++++ .../scripts/arara/rules/arara-rule-spix.yaml | 32 +++ .../scripts/arara/rules/arara-rule-tex.yaml | 44 ++++ .../scripts/arara/rules/arara-rule-texcount.yaml | 74 +++++++ .../scripts/arara/rules/arara-rule-texindy.yaml | 90 +++++++++ .../scripts/arara/rules/arara-rule-tikzmake.yaml | 39 ++++ .../scripts/arara/rules/arara-rule-upbibtex.yaml | 28 +++ .../scripts/arara/rules/arara-rule-uplatex.yaml | 60 ++++++ .../scripts/arara/rules/arara-rule-uptex.yaml | 49 +++++ .../scripts/arara/rules/arara-rule-xdvipdfmx.yaml | 47 +++++ .../scripts/arara/rules/arara-rule-xelatex.yaml | 60 ++++++ .../scripts/arara/rules/arara-rule-xetex.yaml | 49 +++++ .../scripts/arara/rules/arara-rule-xindex.yaml | 43 ++++ .../scripts/arara/rules/arara-rule-xindy.yaml | 90 +++++++++ .../texmf-dist/scripts/arara/rules/asymptote.yaml | 62 ------ .../scripts/arara/rules/authorindex.yaml | 53 ----- Master/texmf-dist/scripts/arara/rules/bib2gls.yaml | 224 --------------------- Master/texmf-dist/scripts/arara/rules/biber.yaml | 42 ---- Master/texmf-dist/scripts/arara/rules/bibtex.yaml | 27 --- Master/texmf-dist/scripts/arara/rules/bibtex8.yaml | 27 --- Master/texmf-dist/scripts/arara/rules/bibtexu.yaml | 27 --- Master/texmf-dist/scripts/arara/rules/clean.yaml | 50 ----- Master/texmf-dist/scripts/arara/rules/context.yaml | 171 ---------------- Master/texmf-dist/scripts/arara/rules/convert.yaml | 34 ---- Master/texmf-dist/scripts/arara/rules/csplain.yaml | 54 ----- .../texmf-dist/scripts/arara/rules/datatooltk.yaml | 190 ----------------- Master/texmf-dist/scripts/arara/rules/detex.yaml | 82 -------- Master/texmf-dist/scripts/arara/rules/dvipdfm.yaml | 38 ---- .../texmf-dist/scripts/arara/rules/dvipdfmx.yaml | 38 ---- Master/texmf-dist/scripts/arara/rules/dvips.yaml | 38 ---- .../texmf-dist/scripts/arara/rules/dvipspdf.yaml | 55 ----- Master/texmf-dist/scripts/arara/rules/dvisvgm.yaml | 28 --- Master/texmf-dist/scripts/arara/rules/etex.yaml | 44 ---- Master/texmf-dist/scripts/arara/rules/fig2dev.yaml | 66 ------ .../scripts/arara/rules/frontespizio.yaml | 78 ------- Master/texmf-dist/scripts/arara/rules/halt.yaml | 19 -- Master/texmf-dist/scripts/arara/rules/indent.yaml | 109 ---------- Master/texmf-dist/scripts/arara/rules/knitr.yaml | 58 ------ Master/texmf-dist/scripts/arara/rules/latex.yaml | 65 ------ Master/texmf-dist/scripts/arara/rules/latexmk.yaml | 61 ------ .../texmf-dist/scripts/arara/rules/luahbtex.yaml | 54 ----- .../texmf-dist/scripts/arara/rules/lualatex.yaml | 65 ------ Master/texmf-dist/scripts/arara/rules/luatex.yaml | 54 ----- Master/texmf-dist/scripts/arara/rules/make.yaml | 46 ----- .../scripts/arara/rules/makeglossaries.yaml | 90 --------- .../scripts/arara/rules/makeglossarieslite.yaml | 28 --- .../texmf-dist/scripts/arara/rules/makeindex.yaml | 67 ------ .../texmf-dist/scripts/arara/rules/metapost.yaml | 50 ----- Master/texmf-dist/scripts/arara/rules/nomencl.yaml | 38 ---- Master/texmf-dist/scripts/arara/rules/pbibtex.yaml | 27 --- .../texmf-dist/scripts/arara/rules/pdfcsplain.yaml | 54 ----- .../texmf-dist/scripts/arara/rules/pdflatex.yaml | 65 ------ Master/texmf-dist/scripts/arara/rules/pdftex.yaml | 54 ----- Master/texmf-dist/scripts/arara/rules/pdftk.yaml | 28 --- Master/texmf-dist/scripts/arara/rules/perltex.yaml | 82 -------- Master/texmf-dist/scripts/arara/rules/platex.yaml | 60 ------ Master/texmf-dist/scripts/arara/rules/ps2pdf.yaml | 38 ---- Master/texmf-dist/scripts/arara/rules/ptex.yaml | 49 ----- .../texmf-dist/scripts/arara/rules/pythontex.yaml | 71 ------- Master/texmf-dist/scripts/arara/rules/qpdf.yaml | 28 --- Master/texmf-dist/scripts/arara/rules/sketch.yaml | 30 --- Master/texmf-dist/scripts/arara/rules/songidx.yaml | 41 ---- Master/texmf-dist/scripts/arara/rules/tex.yaml | 44 ---- .../texmf-dist/scripts/arara/rules/texcount.yaml | 75 ------- Master/texmf-dist/scripts/arara/rules/texindy.yaml | 90 --------- .../texmf-dist/scripts/arara/rules/tikzmake.yaml | 39 ---- .../texmf-dist/scripts/arara/rules/upbibtex.yaml | 28 --- Master/texmf-dist/scripts/arara/rules/uplatex.yaml | 60 ------ Master/texmf-dist/scripts/arara/rules/uptex.yaml | 49 ----- .../texmf-dist/scripts/arara/rules/xdvipdfmx.yaml | 38 ---- Master/texmf-dist/scripts/arara/rules/xelatex.yaml | 60 ------ Master/texmf-dist/scripts/arara/rules/xetex.yaml | 49 ----- Master/texmf-dist/scripts/arara/rules/xindex.yaml | 49 ----- Master/texmf-dist/scripts/arara/rules/xindy.yaml | 90 --------- 133 files changed, 4150 insertions(+), 3587 deletions(-) delete mode 100644 Master/texmf-dist/scripts/arara/rules/animate.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-animate.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-asymptote.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-authorindex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-bib2gls.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-biber.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-bibtex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-bibtex8.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-bibtexu.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-clean.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-context.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-convert.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-copy.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-csplain.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-datatooltk.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-detex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-dvipdfm.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-dvipdfmx.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-dvips.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-dvipspdf.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-dvisvgm.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-etex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-fig2dev.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-frontespizio.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-ghostscript.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-gnuplot.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-halt.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-indent.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-knitr.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-latex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-latexmk.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-llmk.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-ltx2any.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-luahbtex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-lualatex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-luatex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-make.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-makeglossaries.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-makeglossarieslite.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-makeindex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-metapost.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-move.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-nomencl.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-pbibtex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-pdfcrop.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-pdfcsplain.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-pdflatex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-pdftex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-pdftk.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-perltex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-platex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-ps2pdf.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-ptex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-pythontex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-qpdf.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-sage.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-sketch.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-songidx.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-spix.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-tex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-texcount.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-texindy.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-tikzmake.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-upbibtex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-uplatex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-uptex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-xdvipdfmx.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-xelatex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-xetex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-xindex.yaml create mode 100644 Master/texmf-dist/scripts/arara/rules/arara-rule-xindy.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/asymptote.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/authorindex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/bib2gls.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/biber.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/bibtex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/bibtex8.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/bibtexu.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/clean.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/context.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/convert.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/csplain.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/datatooltk.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/detex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/dvipdfm.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/dvipdfmx.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/dvips.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/dvipspdf.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/dvisvgm.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/etex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/fig2dev.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/frontespizio.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/halt.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/indent.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/knitr.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/latex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/latexmk.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/luahbtex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/lualatex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/luatex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/make.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/makeglossaries.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/makeglossarieslite.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/makeindex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/metapost.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/nomencl.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/pbibtex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/pdfcsplain.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/pdflatex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/pdftex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/pdftk.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/perltex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/platex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/ps2pdf.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/ptex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/pythontex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/qpdf.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/sketch.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/songidx.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/tex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/texcount.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/texindy.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/tikzmake.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/upbibtex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/uplatex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/uptex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/xdvipdfmx.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/xelatex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/xetex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/xindex.yaml delete mode 100644 Master/texmf-dist/scripts/arara/rules/xindy.yaml (limited to 'Master/texmf-dist/scripts') diff --git a/Master/texmf-dist/scripts/arara/arara.jar b/Master/texmf-dist/scripts/arara/arara.jar index 8c97b0e5463..72ac5fc879f 100644 Binary files a/Master/texmf-dist/scripts/arara/arara.jar and b/Master/texmf-dist/scripts/arara/arara.jar differ diff --git a/Master/texmf-dist/scripts/arara/arara.sh b/Master/texmf-dist/scripts/arara/arara.sh index 12efa361a6b..1582f531e77 100755 --- a/Master/texmf-dist/scripts/arara/arara.sh +++ b/Master/texmf-dist/scripts/arara/arara.sh @@ -14,4 +14,4 @@ if echo "$kernel" | grep CYGWIN >/dev/null; then jarpath=`cygpath -w "$jarpath"` fi -exec java -jar "$jarpath" "$@" \ No newline at end of file +exec java -jar "$jarpath" "$@" diff --git a/Master/texmf-dist/scripts/arara/rules/animate.yaml b/Master/texmf-dist/scripts/arara/rules/animate.yaml deleted file mode 100644 index 769ceaecee1..00000000000 --- a/Master/texmf-dist/scripts/arara/rules/animate.yaml +++ /dev/null @@ -1,56 +0,0 @@ -!config -# Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX -# All rights reserved. -# -# This rule is part of arara. -identifier: animate -name: Animate -authors: -- Chris Hughes -- Island of TeX -commands: -- name: The Convert program - command: > - @{ - prefix = []; - input = getBasename(reference.getName()).concat('.pdf'); - output = getBasename(reference.getName()).concat('.gif'); - return getCommand(program, '-delay', delay, '-loop', - loop, '-density', density, options, input, output); - } -arguments: -- identifier: delay - flag: > - @{ - parameters.delay - } - default: 10 -- identifier: loop - flag: > - @{ - parameters.loop - } - default: 0 -- identifier: density - flag: > - @{ - parameters.density - } - default: 300 -- identifier: program - flag: > - @{ - parameters.program - } - default: convert -- identifier: options - flag: > - @{ - if (isList(parameters.options)) { - return parameters.options; - } - else { - throwError('I was expecting a list of options.'); - } - } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-animate.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-animate.yaml new file mode 100644 index 00000000000..4e7acc9bfb0 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-animate.yaml @@ -0,0 +1,55 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: animate +name: Animate +authors: +- Chris Hughes +- Island of TeX +commands: +- name: The Convert program + command: > + @{ + input = getBasename(reference.getName()).concat('.pdf'); + output = getBasename(reference.getName()).concat('.gif'); + return getCommand(program, '-delay', delay, '-loop', + loop, '-density', density, options, input, output); + } +arguments: +- identifier: delay + flag: > + @{ + parameters.delay + } + default: 10 +- identifier: loop + flag: > + @{ + parameters.loop + } + default: 0 +- identifier: density + flag: > + @{ + parameters.density + } + default: 300 +- identifier: program + flag: > + @{ + parameters.program + } + default: convert +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-asymptote.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-asymptote.yaml new file mode 100644 index 00000000000..232213f73d4 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-asymptote.yaml @@ -0,0 +1,62 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: asymptote +name: Asymptote +authors: +- Island of TeX +commands: +- name: Asymptote + command: > + @{ + return getCommand('asy', color, engine, twice, + format, output, options, reference.getName()); + } +arguments: +- identifier: color + flag: > + @{ + if ([ 'bw', 'cmyk', 'rgb', 'gray' ].contains(parameters.color)) { + return '-' + parameters.color; + } else { + throwError('The provided color enforcement is not valid.'); + } + } +- identifier: engine + flag: > + @{ + if ([ 'latex', 'pdflatex' , 'xelatex', 'lualatex', 'tex', 'pdftex', + 'luatex', 'context', 'none' ].contains(parameters.engine)) { + return [ '-tex', parameters.engine ]; + } else { + throwError('The provided TeX engine is invalid.'); + } + } + default: latex +- identifier: twice + flag: > + @{ + return isTrue(parameters.twice, '-twice'); + } +- identifier: format + flag: > + @{ + return [ '-f', parameters.format ]; + } +- identifier: output + flag: > + @{ + return [ '-o', parameters.output ]; + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } else { + throwError('I was expecting a list of options.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-authorindex.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-authorindex.yaml new file mode 100644 index 00000000000..a7e32141a97 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-authorindex.yaml @@ -0,0 +1,53 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: authorindex +name: AuthorIndex +authors: +- Island of TeX +commands: +- name: The AuthorIndex script + command: > + @{ + return getCommand('authorindex', draft, index, keep, print, + recurse, options, getBasename(reference.getName())); + } +arguments: +- identifier: draft + flag: > + @{ + return isTrue(parameters.draft, '-d'); + } +- identifier: index + flag: > + @{ + return isTrue(parameters.index, '-i'); + } +- identifier: keep + flag: > + @{ + return isTrue(parameters.keep, '-k'); + } +- identifier: print + flag: > + @{ + return isTrue(parameters.print, '-p'); + } +- identifier: recurse + flag: > + @{ + return isFalse(parameters.recurse, '-r'); + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-bib2gls.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-bib2gls.yaml new file mode 100644 index 00000000000..aaff9986ff1 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-bib2gls.yaml @@ -0,0 +1,224 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: bib2gls +name: Bib2Gls +authors: +- Island of TeX +commands: +- name: The Bib2Gls software + command: > + @{ + if (!clean.isEmpty()) + { + prefix = []; + if (isUnix()) { + prefix = [ 'rm', '-f', '-v' ]; + } + else { + prefix = [ 'cmd', '/c', 'del' ]; + } + + base = getBasename(reference); + removals = []; + + lines = readFromFile(base.concat('.').concat('aux')); + + java.util.regex.Pattern resourcePattern = + java.util.regex.Pattern.compile( + "\\\\glsxtr@resource\\{.*\\}\\{([^\\}]+)\\}"); + + if (!trans.isEmpty()) + { + if (trans[0] == getOriginalFile()) + { + throwError('I cannot remove the main file reference.'); + } + + removals.add(getCommand(prefix, trans)); + } + else + { + removals.add(getCommand(prefix, base.concat('.glg'))); + } + + foreach (line: lines) + { + matcher = resourcePattern.matcher(line); + + if (matcher.matches()) + { + removals.add(getCommand(prefix, matcher.group(1).concat('.glstex'))); + } + } + + return removals; + } + else + { + return getCommand('bib2gls', dir, trans, group, interpret, + breakspace, trimfields, recordcount, recordcountunit, + cite, verbose, merge, locale, uniscript, packages, + ignore, custom, mapformats, options, + getBasename(reference.getName())); + } + } +arguments: +- identifier: dir + flag: > + @{ + return ['--dir', parameters.dir] + } +- identifier: trans + flag: > + @{ + if ([ 'tex', 'ltx', 'cls', 'sty', 'bib', + 'dtx', 'ins', 'def', 'ldf' ].contains(parameters.trans)) { + throwError('Forbidden transcript extension'); + } + + return ['--log-file', getBasename(reference.getName())+"."+parameters.trans] + } +- identifier: locale + flag: > + @{ + return ['--locale', parameters.locale] + } +- identifier: group + flag: > + @{ + isTrue(parameters.group, '--group', '--no-group') + } +- identifier: interpret + flag: > + @{ + isTrue(parameters.interpret, '--interpret', '--no-interpret') + } +- identifier: breakspace + flag: > + @{ + isTrue(parameters.breakspace, '--break-space', '--no-break-space') + } +- identifier: trimfields + flag: > + @{ + isTrue(parameters.trimfields, '--trim-fields', '--no-trim-fields') + } +- identifier: recordcount + flag: > + @{ + isTrue(parameters.recordcount, '--record-count', '--no-record-count') + } +- identifier: recordcountunit + flag: > + @{ + isTrue(parameters.recordcountunit, '--record-count-unit', + '--no-record-count-unit') + } +- identifier: cite + flag: > + @{ + isTrue(parameters.cite, '--cite-as-record', '--no-cite-as-record') + } +- identifier: verbose + flag: > + @{ + isTrue(parameters.verbose, '--verbose', '--no-verbose') + } +- identifier: merge + flag: > + @{ + isTrue(parameters.merge, '--merge-wrglossary-records', + '--no-merge-wrglossary-records') + } +- identifier: uniscript + flag: > + @{ + isTrue(parameters.uniscript, '--support-unicode-script', + '--no-support-unicode-script') + } +- identifier: packages + flag: > + @{ + if (isList(parameters.packages)) { + elements = []; + foreach (element : parameters.packages) { + elements.add('--packages'); + elements.add(element); + } + return elements; + } + else { + throwError('I was expecting a list of package names.'); + } + } +- identifier: ignore + flag: > + @{ + if (isList(parameters.ignore)) { + elements = []; + foreach (element : parameters.ignore) { + elements.add('--ignore-packages'); + elements.add(element); + } + return elements; + } + else { + throwError('I was expecting a list of package names.'); + } + } +- identifier: custom + flag: > + @{ + if (isList(parameters.custom)) { + elements = []; + foreach (element : parameters.custom) { + elements.add('--custom-packages'); + elements.add(element); + } + return elements; + } + else { + throwError('I was expecting a list of package names.'); + } + } +- identifier: mapformats + flag: > + @{ + if (isList(parameters.mapformats)) { + elements = []; + foreach (element : parameters.mapformats) { + if (isList(element) && element.size() == 2) { + elements.add('--map-format'); + elements.add(element.get(0) + ':' + element.get(1)); + } + else { + throwError('I was expecting a map ' + + 'format list [, ] '); + } + } + return elements; + } + else { + throwError('I was expecting mapformats: [ [, ], ' + + '..., [, ] ].'); + } + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } +- identifier: clean + flag: > + @{ + return isTrue(parameters.clean, 'true', ''); + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-biber.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-biber.yaml new file mode 100644 index 00000000000..98c294a4998 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-biber.yaml @@ -0,0 +1,39 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: biber +name: Biber +authors: +- Island of TeX +commands: +- name: The Biber reference management software + command: > + @{ + if (isTrue(tool[0])) { + return getCommand('biber', '--tool', options); + } + else { + return getCommand('biber', options, + getBasename(reference.getName())); + } + } +arguments: +- identifier: tool + flag: > + @{ + return parameters.tool; + } + default: false +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-bibtex.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-bibtex.yaml new file mode 100644 index 00000000000..a8457584406 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-bibtex.yaml @@ -0,0 +1,27 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: bibtex +name: BibTeX +authors: +- Island of TeX +commands: +- name: The BibTeX reference management software + command: > + @{ + return getCommand('bibtex', options, getBasename(reference.getName())) + } +arguments: +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-bibtex8.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-bibtex8.yaml new file mode 100644 index 00000000000..2526c82b5a4 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-bibtex8.yaml @@ -0,0 +1,27 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: bibtex8 +name: BibTeX8 +authors: +- Island of TeX +commands: +- name: An 8-bit implementation of BibTeX 0.99 with a very large capacity + command: > + @{ + return getCommand('bibtex8', options, getBasename(reference.getName())); + } +arguments: +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-bibtexu.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-bibtexu.yaml new file mode 100644 index 00000000000..708a3ebfb6d --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-bibtexu.yaml @@ -0,0 +1,27 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: bibtexu +name: BibTeXu +authors: +- Island of TeX +commands: +- name: An 8-bit implementation of BibTeX 0.99 with a very large capacity + command: > + @{ + return getCommand('bibtexu', options, getBasename(reference.getName())); + } +arguments: +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-clean.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-clean.yaml new file mode 100644 index 00000000000..aa07560cb90 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-clean.yaml @@ -0,0 +1,50 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: clean +name: Clean +authors: +- Island of TeX +commands: +- name: Cleaning feature + command: > + @{ + prefix = []; + if (isUnix()) { + prefix = [ 'rm', '-f' ]; + } + else { + prefix = [ 'cmd', '/c', 'del' ]; + } + if (extensions == '') { + if (getOriginalReference() == reference) { + throwError('I cannot remove the main file reference.'); + } + return getCommand(prefix, reference); + } + else { + base = getBasename(reference); + removals = []; + foreach(extension : extensions) { + if (base.concat('.').concat(extension) == getOriginalFile()) { + throwError('I cannot remove the main file reference.'); + } + removals.add(getCommand(prefix, base.concat('.').concat(extension))); + } + return removals; + } + } +arguments: +- identifier: extensions + flag: > + @{ + if (isList(parameters.extensions)) { + return parameters.extensions; + } + else { + throwError('I was expecting a list of extensions.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-context.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-context.yaml new file mode 100644 index 00000000000..49dc9e5f609 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-context.yaml @@ -0,0 +1,170 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: context +name: ConTeXt +authors: +- Island of TeX +commands: +- name: ConTeXt engine + command: > + @{ + return getCommand('context', make, ctx, interface, autopdf, purge, + modules, environments, mode, path, arguments, + trackers, directives, silent, errors, interaction, + synctex, options, reference.getName()); + } +arguments: +- identifier: make + flag: > + @{ + return isTrue(parameters.make, '--make'); + } +- identifier: ctx + flag: > + @{ + return '--ctx='.concat(parameters.ctx); + } +- identifier: interface + flag: > + @{ + return [ '--interface', parameters.interface ]; + } +- identifier: autopdf + flag: > + @{ + return isTrue(parameters.autopdf, '--autopdf'); + } +- identifier: purge + flag: > + @{ + p = [ 'partial' : '--purge', 'all' : '--purgeall', + 'result' : '--purgeresult' ]; + if (p.keySet().contains(parameters.purge)) { + return p.get(parameters.purge); + } + else { + throwError('Invalid value, expected partial, result or all.'); + } + } +- identifier: modules + flag: > + @{ + if (isList(parameters.modules)) { + return '--usemodule='.concat(String.join(',', parameters.modules)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: environments + flag: > + @{ + if (isList(parameters.environments)) { + return '--environment='.concat(String.join(',', + parameters.environments)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: mode + flag: > + @{ + if (isList(parameters.mode)) { + return '--mode='.concat(String.join(',', parameters.mode)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: path + flag: > + @{ + if (isList(parameters.path)) { + return '--path='.concat(String.join(',', parameters.path)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: arguments + flag: > + @{ + if (isList(parameters.arguments)) { + return '--arguments='.concat(String.join(',', + parameters.arguments)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: trackers + flag: > + @{ + if (isList(parameters.trackers)) { + return '--trackers='.concat(String.join(',', parameters.trackers)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: directives + flag: > + @{ + if (isList(parameters.directives)) { + return '--directives='.concat(String.join(',', + parameters.directives)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: silent + flag: > + @{ + if (isList(parameters.modules)) { + return '--silent='.concat(String.join(',', parameters.silent)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: errors + flag: > + @{ + if (isList(parameters.errors)) { + return '--errors='.concat(String.join(',', parameters.errors)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: interaction + flag: > + @{ + if ([ 'batchmode', 'nonstopmode' ].contains(parameters.interaction)) { + return '--'.concat(parameters.interaction); + } + else { + throwError('The provided interaction value is not valid.'); + } + } +- identifier: synctex + flag: > + @{ + return isTrue(parameters.synctex, '--synctex', '--nosynctex'); + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-convert.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-convert.yaml new file mode 100644 index 00000000000..7a2140d0a77 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-convert.yaml @@ -0,0 +1,34 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: convert +name: Convert +authors: +- Island of TeX +commands: +- name: The Convert program + command: > + @{ + return getCommand(program, options); + } +arguments: +- identifier: program + flag: > + @{ + parameters.program + } + default: convert +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } + required: true diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-copy.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-copy.yaml new file mode 100644 index 00000000000..b43ef1e28ac --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-copy.yaml @@ -0,0 +1,36 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: copy +name: Copy +authors: +- Island of TeX +commands: +- name: The OS copy call + command: > + @{ + prefix = []; + if (isUnix()) { + prefix = [ 'cp', '-f' ]; + } + else { + prefix = [ 'cmd', '/c', 'copy', '/Y' ]; + } + t = isList(target) ? target[0] : target; + f = toFile(t).getCanonicalFile(); + if (getOriginalReference().equals(f)) { + throwError('I cannot overwrite the main file reference.'); + } + return getCommand(prefix, reference, t); + } +arguments: +- identifier: target + flag: > + @{ + return parameters.target; + } + required: true + diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-csplain.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-csplain.yaml new file mode 100644 index 00000000000..720cd0cc8fe --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-csplain.yaml @@ -0,0 +1,54 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: csplain +name: CSplain +authors: +- Island of TeX +commands: +- name: CSplain engine + command: > + @{ + return getCommand('csplain', interaction, draft, + shell, synctex, options, reference.getName()); + } +arguments: +- identifier: interaction + flag: > + @{ + if ([ 'batchmode', 'nonstopmode', 'scrollmode', + 'errorstopmode' ].contains(parameters.interaction)) { + return '--interaction='.concat(parameters.interaction); + } + else { + throwError('The provided interaction value is not valid.'); + } + } +- identifier: shell + flag: > + @{ + isTrue(parameters.shell, '--shell-escape', '--no-shell-escape') + } +- identifier: synctex + flag: > + @{ + isTrue(parameters.synctex, '--synctex=1', '--synctex=0') + } +- identifier: draft + flag: > + @{ + isTrue(parameters.draft, '--draftmode') + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-datatooltk.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-datatooltk.yaml new file mode 100644 index 00000000000..16c84dc439d --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-datatooltk.yaml @@ -0,0 +1,187 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: datatooltk +name: DatatoolTk +authors: +- Island of TeX +commands: +- name: The DatatoolTk software + command: > + @{ + return getCommand('datatooltk', options, output, csv, sql, input, + sqldb, sqluser, name, probsoln, sort, sortlocale, sortcase, + seed, shuffle, sep, delim, csvheader, noconsole, debug, + owneronly, maptex, xls, ods, sheet, filterop, filters, + truncate); + } +arguments: +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } +- identifier: output + flag: > + @{ + [ '--output', parameters.output ] + } + required: true +- identifier: csv + flag: > + @{ + [ '--csv', parameters.csv ] + } +- identifier: sep + flag: > + @{ + [ '--sep', parameters.sep ] + } +- identifier: delim + flag: > + @{ + [ '--delim', parameters.delim ] + } +- identifier: name + flag: > + @{ + [ '--name', parameters.name ] + } +- identifier: sql + flag: > + @{ + [ '--sql', parameters.sql ] + } +- identifier: sqldb + flag: > + @{ + [ '--sqldb', parameters.sqldb ] + } +- identifier: sqluser + flag: > + @{ + [ '--sqluser', parameters.sqluser ] + } +- identifier: noconsole + flag: > + @{ + [ '--noconsole-action', isEmpty(parameters.noconsole, 'gui', parameters.noconsole) ] + } + default: '' +- identifier: probsoln + flag: > + @{ + [ '--probsoln', parameters.probsoln ] + } +- identifier: input + flag: > + @{ + [ '--in', parameters.input ] + } +- identifier: sort + flag: > + @{ + [ '--sort', parameters.sort ] + } +- identifier: sortlocale + flag: > + @{ + [ '--sort-locale', parameters.sortlocale ] + } +- identifier: sortcase + flag: > + @{ + isTrue(parameters.sortcase, '--sort-case-sensitive', + '--sort-case-insensitive') + } +- identifier: seed + flag: > + @{ + [ '--seed', parameters.seed ] + } +- identifier: shuffle + flag: > + @{ + isTrue(parameters.shuffle, '--shuffle', '--noshuffle') + } +- identifier: csvheader + flag: > + @{ + isTrue(parameters.csvheader, '--csvheader', '--nocsvheader') + } +- identifier: debug + flag: > + @{ + isTrue(parameters.debug, '--debug', '--nodebug') + } +- identifier: owneronly + flag: > + @{ + isTrue(parameters.owneronly, '--owner-only', '--noowner-only') + } +- identifier: maptex + flag: > + @{ + isTrue(parameters.maptex, '--map-tex-specials', + '--nomap-tex-specials') + } +- identifier: xls + flag: > + @{ + [ '--xls', parameters.xls ] + } +- identifier: ods + flag: > + @{ + [ '--ods', parameters.ods ] + } +- identifier: sheet + flag: > + @{ + [ '--sheet', parameters.sheet ] + } +- identifier: filterop + flag: > + @{ + if (['and', 'or'].contains(parameters.filterop)) { + return "--filter-" + parameters.filterop; + } + else { + throwError('The provided filterop value is not valid.'); + } + } +- identifier: filters + flag: > + @{ + if (isList(parameters.filters)) { + elements = []; + foreach (element : parameters.filters) { + if (isList(element) && element.size() == 3) { + elements.add('--filter'); + elements.add(element); + } + else { + throwError('I was expecting a filter ' + + 'list [