diff options
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules/songidx.yaml')
-rw-r--r-- | Master/texmf-dist/scripts/arara/rules/songidx.yaml | 44 |
1 files changed, 37 insertions, 7 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/songidx.yaml b/Master/texmf-dist/scripts/arara/rules/songidx.yaml index faa64e70d20..818c4333a77 100644 --- a/Master/texmf-dist/scripts/arara/rules/songidx.yaml +++ b/Master/texmf-dist/scripts/arara/rules/songidx.yaml @@ -1,11 +1,41 @@ - !config -# songidx rule for arara -# author: Francesco Endrici -# requires arara 3.0 +!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 -command: <arara> songidx "@{input}.sxd" +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: <arara> @{parameters.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 |