Use Linux-like indentation in mptp.c
[swifty.git] / src / libswift_udp / 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 tostr in `grep -v '#' ../$SERVERS`; do
15     to=${tostr%:*}
16     echo '<td class="host">&gt;'$to'</td>'
17 done
18 echo '</th>'
19 for fromstr in `grep -v '#' ../$SERVERS`; do
20     from=${fromstr%:*}
21     echo '<tr><td class="host">'$from'&gt;</td>'
22     for tostr in `grep -v '#' ../$SERVERS`; do
23         to=${tostr%:*}
24         echo '<td>'
25         cat $from-$to.html
26         if [ -e "$from-$to.big.png" ]; then 
27             echo "<a href='$from-$to.big.png'>"
28             echo "<img class='thumb' src='$from-$to.thumb.png'/>"
29             echo "</a>"
30         fi
31         echo '</td>'
32     done
33     echo '</tr>'
34 done
35 echo '<body></html>'