diff options
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules/clean.yaml')
-rw-r--r-- | Master/texmf-dist/scripts/arara/rules/clean.yaml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/clean.yaml b/Master/texmf-dist/scripts/arara/rules/clean.yaml index 1a39ed3f27a..2a82eb3a87e 100644 --- a/Master/texmf-dist/scripts/arara/rules/clean.yaml +++ b/Master/texmf-dist/scripts/arara/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()) { |