From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- support/arara/scripts/rules/ps2pdf.yaml | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 support/arara/scripts/rules/ps2pdf.yaml (limited to 'support/arara/scripts/rules/ps2pdf.yaml') diff --git a/support/arara/scripts/rules/ps2pdf.yaml b/support/arara/scripts/rules/ps2pdf.yaml new file mode 100644 index 0000000000..656f7e22c3 --- /dev/null +++ b/support/arara/scripts/rules/ps2pdf.yaml @@ -0,0 +1,39 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2018, Paulo Roberto Massa Cereda +# All rights reserved. +# +# This rule is part of arara. +identifier: ps2pdf +name: PS2PDF +authors: +- Marco Daniel +- Paulo Cereda +commands: +- name: The PS2PDF program + command: > + @{ + infile = getBasename(file).concat('.ps'); + outfile = getBasename(output).concat('.pdf'); + return getCommand('ps2pdf', options, infile, outfile); + } +arguments: +- identifier: output + flag: > + @{ + parameters.output + } + default: > + @{ + file + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } -- cgit v1.2.3