summaryrefslogtreecommitdiffstatsci
path: root/utils/make_index
blob: ebaa515ba2605b8c16060d96762ab96e40f3851a (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash

cat <<EOF
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
 <style>
   body {
   background-color: #333;
   }

   h1 {
   color: #6f6;
   }

   #results {
   font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
   border-collapse:collapse;
   border-right:1px solid black;
   border-left:1px solid black;
   }

   #results td, #results th {
   font-size:1em;
   border-bottom:1px solid black;
   padding:3px 7px 32px 7px;
   }

   #results th {
   font-size:1.1em;
   text-align:left;
   padding-top:5px;
   padding-bottom:4px;
   background-color:black;
   color:#ffffff;
   }

   #results tr.alt td {
   color:#000000;
   background-color:silver;
   }
 </style>
</head>
<body>

<h1>Cairo vs. Skia</h1>

<table id="results">

EOF

for test in src/skia-tests/*; do
    name=$(basename ${test%.cpp})
    cat <<EOF
 <tbody><tr><th colspan="2">${name}</th></tr>
 <tr>
  <td><img src="cairo-${name}.png"></td>
  <td><img src="skia-${name}.png"></td>
 </tr>

EOF

done

cat <<EOF
</tbody></table>


</body></html>
EOF