From 613cff9828f6d775a269334ec8588217caa03af8 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Tue, 22 Jun 1999 10:11:00 +0000 Subject: Three scripts to look into the error logs and generate the now-famous web page of errors. --- Tools/portbuild/scripts/comparelogs | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 Tools/portbuild/scripts/comparelogs (limited to 'Tools/portbuild/scripts/comparelogs') diff --git a/Tools/portbuild/scripts/comparelogs b/Tools/portbuild/scripts/comparelogs new file mode 100755 index 000000000000..a5952287b077 --- /dev/null +++ b/Tools/portbuild/scripts/comparelogs @@ -0,0 +1,51 @@ +#!/bin/sh + +# prints out logs that are in dir1 but not in dir2 + +if [ $# != 2 ]; then + echo "usage: $0 dir1 dir2" + exit 1 +fi + +here=$(pwd) +dir1=$1 +dir2=$2 +fdir1=$here/$dir1 +fdir2=$here/$dir2 +ldir2=$(cd $fdir2; cd ../logs; pwd) + +of=$here/$dir1-$dir2.html + +echo "Logs that are in $dir1 but not in $dir2" >$of +echo "

Logs that are in $dir1 but not in $dir2

" >>$of +echo "" >>$of + +cd $fdir1 + +set *.log + +if [ $# = 1 -a "x$1" = "x*.log" ]; then + echo "No errors" >>$of +else + num=0 + echo "" >>$of + echo "" >>$of + while [ $# -gt 0 ]; do + if [ -f ${ldir2}/$1 -a ! -f ${fdir2}/$1 ]; then + echo -n "" >>$of + num=$(($num + 1)) + fi + shift + done + echo "
Log
" >>$of + echo -n "" >>$of + echo -n $(basename $1 .log) >>$of + echo -n "" >>$of + echo "

" >> $of + echo "$num errors
" >> $of +fi + +echo "
" >> $of +echo "back to top" >> $of + +echo "" >>$of -- cgit v1.2.3