summaryrefslogtreecommitdiff
path: root/support/arara/doc/rules/manual.yaml
blob: a419e0e779f49e316f3268cc0abcd493eb15cfcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
!config
identifier: manual
name: The arara manual
authors:
- Island of TeX
commands:
- name: The PDFLaTeX engine
  command: >
    @{
        return getCommand('pdflatex', reference);
    }
- name: The PDFLaTeX engine
  command: >
    @{
        return getCommand('pdflatex', reference);
    }
- 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(reference)
                     .concat('.').concat(extension)));
        }
        foreach (match : matches) {
            removals.add(getCommand(prefix, match.getCanonicalPath()));
        }
        return removals;
    }
arguments: []