summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/arara/rules/manual.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/arara/rules/manual.yaml')
-rw-r--r--Master/texmf-dist/doc/support/arara/rules/manual.yaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/arara/rules/manual.yaml b/Master/texmf-dist/doc/support/arara/rules/manual.yaml
new file mode 100644
index 00000000000..d3000879d6a
--- /dev/null
+++ b/Master/texmf-dist/doc/support/arara/rules/manual.yaml
@@ -0,0 +1,41 @@
+!config
+identifier: manual
+name: The arara manual
+authors:
+- Paulo Cereda
+commands:
+- name: The PDFLaTeX engine
+ command: >
+ @{
+ return getCommand('pdflatex', file);
+ }
+- name: The PDFLaTeX engine
+ command: >
+ @{
+ return getCommand('pdflatex', file);
+ }
+- name: File cleanup
+ command: >
+ @{
+ matches = listFilesByExtensions('.',
+ [ 'aux' ], true);
+ prefix = [];
+ if (isUnix()) {
+ prefix = [ 'rm', '-f' ];
+ }
+ else {
+ prefix = [ 'cmd', '/c', 'del' ];
+ }
+ removals = [];
+ extensions = [ 'listing', 'log', 'toc',
+ 'out', 'synctex.gz' ];
+ foreach (extension : extensions) {
+ removals.add(getCommand(prefix, getBasename(file)
+ .concat('.').concat(extension)));
+ }
+ foreach (match : matches) {
+ removals.add(getCommand(prefix, match.getCanonicalPath()));
+ }
+ return removals;
+ }
+arguments: []