3 HTML="buildlogs/index.html"
7 for VERSION in `ls buildlogs|grep -v html` ; do
8 echo "XXXX Version $VERSION"
9 echo "<h3>$VERSION</h3><table border=1>" >> $HTML
10 for file in `ls buildlogs/$VERSION/*.log`; do
12 host=`basename $file .log`
14 ## Extract the output from config.log
15 cat buildlogs/$VERSION/$file | \
17 -e '/CONFIG-LOG-DUMP-BEGIN/ { ' \
20 -e ' /CONFIG-LOG-DUMP-END/Q' \
27 >buildlogs/$VERSION/$host.config
28 cat buildlogs/$VERSION/$file | \
30 -e '/CONFIG-LOG-DUMP-BEGIN/Q'\
35 >buildlogs/$VERSION/$host.output
37 ## Extract some info out there
38 last=`tail -n 1 buildlogs/$VERSION/$file`
39 sys=`grep -e "^build='[^']*'\$" buildlogs/$VERSION/$file| \
40 sed "s/^build='\([^']*\)'\$/\1/"`
41 grassys=`grep "^#define GRAS_THISARCH" buildlogs/$VERSION/$file| \
42 sed 's/.*GRAS_THISARCH //'`
45 ## Make text and html outputs
46 if [ "x$last" = "xRemote compilation sucessful." ] ; then
53 echo "<tr <td><a href=$VERSION/$host.output>$res</a>" >> $HTML
54 echo " <td bgcolor='$color'>$host" >> $HTML
55 echo " <td><a href=$VERSION/$host.config>$sys</a>" >> $HTML
57 echo "$res $host $sys ($grassys)"
59 echo "</table>" >> $HTML
61 echo "</html>" >>$HTML