#! /bin/sh HTML="buildlogs/index.html" rm -f $HTML echo "" >> $HTML for VERSION in `ls buildlogs|grep -v html` ; do echo "XXXX Version $VERSION" echo "

$VERSION

" >> $HTML for file in `ls buildlogs/$VERSION/*.log`; do file=`basename $file` host=`basename $file .log` ## Extract the output from config.log cat buildlogs/$VERSION/$file | \ sed -e ':begin' \ -e '/CONFIG-LOG-DUMP-BEGIN/ { ' \ -e ' :in' \ -e ' n'\ -e ' /CONFIG-LOG-DUMP-END/Q' \ -e ' p'\ -e ' b in' \ -e '}'\ -e 'n'\ -e 'b begin' \ -n \ >buildlogs/$VERSION/$host.config cat buildlogs/$VERSION/$file | \ sed -e ':begin' \ -e '/CONFIG-LOG-DUMP-BEGIN/Q'\ -e 'p'\ -e 'n'\ -e 'b begin' \ -n \ >buildlogs/$VERSION/$host.output ## Extract some info out there last=`tail -n 1 buildlogs/$VERSION/$file` sys=`grep "checking target system type..." buildlogs/$VERSION/$file| \ sed 's/checking target system type...//'` ## Make text and html outputs if [ "x$last" = "xRemote compilation sucessful." ] ; then res="success: " color= else res="FAILED: " color="#fc5e5e" fi echo "$res" >> $HTML echo "
$host" >> $HTML echo " $sys" >> $HTML echo "$res $host $sys" done echo "
" >> $HTML done echo "" >>$HTML