add .gitignore
[swift-upb.git] / mfold / logreport
1 #!/bin/bash
2
3 if [ ! $SERVERS ]; then
4     export SERVERS="servers.txt"
5 fi
6
7 cd harvest
8
9 echo '<html><head>'
10 echo '<link rel="stylesheet" href="report.css" type="text/css">'
11 echo '<title>Manifold: swarm tomography' `date` `git log --summary | head -1` '</title>'
12 echo '</head><body>'
13 echo '<table id="main"><th>'
14 for to in `grep -v '#' ../$SERVERS`; do
15     echo '<td class="host">&gt;'$to'</td>'
16 done
17 echo '</th>'
18 for from in `grep -v '#' ../$SERVERS`; do
19     echo '<tr><td class="host">'$from'&gt;</td>'
20     for to in `grep -v '#' ../$SERVERS`; do
21         echo '<td>'
22         cat $from-$to.html
23         if [ -e "$from-$to.big.png" ]; then 
24             echo "<a href='$from-$to.big.png'>"
25             echo "<img class='thumb' src='$from-$to.thumb.png'/>"
26             echo "</a>"
27         fi
28         echo '</td>'
29     done
30     echo '</tr>'
31 done
32 echo '<body></html>'