!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