diff options
Diffstat (limited to 'support/arara/scripts/rules/clean.yaml')
-rw-r--r-- | support/arara/scripts/rules/clean.yaml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/support/arara/scripts/rules/clean.yaml b/support/arara/scripts/rules/clean.yaml index 1a39ed3f27..2a82eb3a87 100644 --- a/support/arara/scripts/rules/clean.yaml +++ b/support/arara/scripts/rules/clean.yaml @@ -1,14 +1,13 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2018, Paulo Roberto Massa Cereda +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. identifier: clean name: Clean authors: -- Marco Daniel -- Paulo Cereda +- Island of TeX commands: - name: Cleaning feature command: > @@ -21,13 +20,13 @@ commands: prefix = [ 'cmd', '/c', 'del' ]; } if (extensions == '') { - if (getOriginalFile() == file) { + if (getOriginalReference() == reference) { throwError('I cannot remove the main file reference.'); } - return getCommand(prefix, file); + return getCommand(prefix, reference); } else { - base = getBasename(file); + base = getBasename(reference); removals = []; foreach(extension : extensions) { if (base.concat('.').concat(extension) == getOriginalFile()) { |