summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/arara/rules
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-04-23 21:06:30 +0000
committerKarl Berry <karl@freefriends.org>2020-04-23 21:06:30 +0000
commit58c52c4afff673d54710f462c9611f6274442280 (patch)
tree3103c09f5fdf60549b76a3166028be61a89fdbda /Master/texmf-dist/scripts/arara/rules
parent79ebe279f631cd3da2dab397c98bad3b0fb8cc51 (diff)
arara (23apr20)
git-svn-id: svn://tug.org/texlive/trunk@54853 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules')
-rw-r--r--Master/texmf-dist/scripts/arara/rules/authorindex.yaml53
1 files changed, 53 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/authorindex.yaml b/Master/texmf-dist/scripts/arara/rules/authorindex.yaml
new file mode 100644
index 00000000000..a7e32141a97
--- /dev/null
+++ b/Master/texmf-dist/scripts/arara/rules/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.');
+ }
+ }