diff options
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules/arara-rule-songidx.yaml')
-rw-r--r-- | Master/texmf-dist/scripts/arara/rules/arara-rule-songidx.yaml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-songidx.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-songidx.yaml new file mode 100644 index 00000000000..7d5fa870deb --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-songidx.yaml @@ -0,0 +1,41 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: songidx +name: SongIDX +authors: +- Francesco Endrici +- Island of TeX +commands: +- name: The SongIDX Lua script + command: > + @{ + infile = getBasename(input[0]).concat('.sxd'); + return getCommand('texlua', script, options, infile); + } +arguments: +- identifier: input + flag: > + @{ + parameters.input + } + required: true +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } +- identifier: script + flag: > + @{ + parameters.script + } + default: songidx.lua |