summaryrefslogtreecommitdiff
path: root/support/arara/scripts/rules/arara-rule-llmk.yaml
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-02-27 03:01:43 +0000
committerNorbert Preining <norbert@preining.info>2021-02-27 03:01:43 +0000
commit4e6fb7c03bc033485887a99d2ffeca70ef8c0644 (patch)
tree5a337396041659a71d6da3f68367402d5c4e7dfe /support/arara/scripts/rules/arara-rule-llmk.yaml
parent8b1159ba65d4003e969141fb034abbdc19e27c4b (diff)
CTAN sync 202102270301
Diffstat (limited to 'support/arara/scripts/rules/arara-rule-llmk.yaml')
-rw-r--r--support/arara/scripts/rules/arara-rule-llmk.yaml57
1 files changed, 57 insertions, 0 deletions
diff --git a/support/arara/scripts/rules/arara-rule-llmk.yaml b/support/arara/scripts/rules/arara-rule-llmk.yaml
new file mode 100644
index 0000000000..1a6864225a
--- /dev/null
+++ b/support/arara/scripts/rules/arara-rule-llmk.yaml
@@ -0,0 +1,57 @@
+!config
+# Arara, the cool TeX automation tool
+# Copyright (c) 2020, Island of TeX
+# All rights reserved.
+#
+# This rule is part of arara.
+identifier: llmk
+name: LLMK
+authors:
+- Island of TeX
+commands:
+- name: The automation tool
+ command: >
+ @{
+ return getCommand('llmk', clean, debug, dry,
+ mode, reference.getName());
+ }
+arguments:
+- identifier: clean
+ flag: >
+ @{
+ goals = [ 'partial' : '--clean', 'all' : '--clobber' ];
+ if (goals.keySet().contains(parameters.clean)) {
+ return goals.get(parameters.clean);
+ }
+ else {
+ throwError('The provided value is invalid.');
+ }
+ }
+- identifier: debug
+ flag: >
+ @{
+ if (parameters.debug.equals('all')) {
+ return '-D';
+ }
+ else {
+ return [ '-d', parameters.debug ];
+ }
+ }
+- identifier: dry
+ flag: >
+ @{
+ return isTrue(parameters.dry, '--dry-run');
+ }
+- identifier: mode
+ flag: >
+ @{
+ modes = [ 'quiet' : '-q', 'silent' : '-s',
+ 'verbose' : '-v' ];
+ if (modes.keySet().contains(parameters.mode)) {
+ return modes.get(parameters.mode);
+ }
+ else {
+ throwError('Invalid mode name.');
+ }
+ }
+