diff options
Diffstat (limited to 'support/arara/scripts/rules/songidx.yaml')
-rw-r--r-- | support/arara/scripts/rules/songidx.yaml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/support/arara/scripts/rules/songidx.yaml b/support/arara/scripts/rules/songidx.yaml new file mode 100644 index 0000000000..818c4333a7 --- /dev/null +++ b/support/arara/scripts/rules/songidx.yaml @@ -0,0 +1,41 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2018, Paulo Roberto Massa Cereda +# All rights reserved. +# +# This rule is part of arara. +identifier: songidx +name: SongIDX +authors: +- Francesco Endrici +- Paulo Cereda +commands: +- name: The SongIDX Lua script + command: > + @{ + infile = getBasename(input).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 |