File: clean

package info (click to toggle)
oxref 2.02.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 692 kB
  • sloc: cpp: 1,282; makefile: 131; sh: 48
file content (33 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (3)
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
void clean(int dist)
{
    run("rm -rf "
            "build-stamp configure-stamp "
            "options/SKEL "
            "tmp/*.o" + 
            " o */o release.yo tmp/lib*.a "    
            "parser/grammar.output "
            "spch main.ih.gch */*.ih.gch"
    );


    if (dist)
        run("rm -rf tmp a */a" );

    chdir("documentation");

    run("rm -rf "
            "man/*.1 "
            "man/*.3* "
            "man/*.html "
            "manual/*.html "
            "manual/invoking/usage "
            "manual/invoking/usage.txt "
            "usage/usage "
    );

    exit(0);
}