File: zips

package info (click to toggle)
c++-annotations 11.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 11,244 kB
  • sloc: cpp: 21,698; makefile: 1,505; ansic: 165; sh: 121; perl: 90
file content (43 lines) | stat: -rw-r--r-- 1,277 bytes parent folder | download | duplicates (6)
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
42
43
void zip(string dst, string src)
{
    system("zip -r cppannotations/zips/" + dst + " cppannotations/" + src); 
}

void zips()
{
    system("mkdir -p tmp/docs/zips");    
    system("rm -f tmp/docs/zips/*");
    system("ln -sf tmp/docs cppannotations");


    system("cp README single/legal.shtml cppannotations/txt");
    zip("cplusplus.txt.zip", "txt/*");


    system("cp README single/legal.shtml cppannotations/latex");
    zip("cplusplus.ps.zip",   "latex/*.ps");
    zip("cplusplus.ps.zip",   "latex/legal.shtml");
    zip("cplusplus.ps.zip",   "latex/README");


    zip("cplusplus.pdf.zip",   "latex/*.pdf");
    zip("cplusplus.pdf.zip",   "latex/legal.shtml");
    zip("cplusplus.pdf.zip",   "latex/README");


    system("ln -s ../../../contrib tmp/docs/html/contrib");
        system("cp README cppannotations/html");
        zip("cplusplus.html.zip",   "html/* -x *.svn*");
    system("rm tmp/docs/html/contrib");


    system("ln -sf ../../yo tmp/docs/yo");
    system("ln -sf ../contrib yo/contrib");
        system("cp single/legal.shtml changelog README yo");
        zip("cplusplus.yo.zip",   "yo/* -x *.svn*");
    system("rm yo/contrib yo/legal.shtml yo/changelog yo/README");
    system("rm tmp/docs/yo ");

    system("rm cppannotations");
    exit(0);
}