head 1.5; access; symbols RELEASE_7_4_0:1.4 RELEASE_8_2_0:1.4 RELEASE_6_EOL:1.4 RELEASE_8_1_0:1.4 RELEASE_7_3_0:1.4 RELEASE_8_0_0:1.4 RELEASE_7_2_0:1.4 RELEASE_7_1_0:1.4 RELEASE_6_4_0:1.4 RELEASE_5_EOL:1.4 RELEASE_7_0_0:1.4 RELEASE_6_3_0:1.4 PRE_XORG_7:1.4 RELEASE_4_EOL:1.4 RELEASE_6_2_0:1.4 RELEASE_6_1_0:1.4 RELEASE_5_5_0:1.4 RELEASE_6_0_0:1.4 RELEASE_5_4_0:1.4 RELEASE_4_11_0:1.4 RELEASE_5_3_0:1.4 RELEASE_4_10_0:1.4 RELEASE_5_2_1:1.4 RELEASE_5_2_0:1.4 RELEASE_4_9_0:1.4 RELEASE_5_1_0:1.3 RELEASE_4_8_0:1.3 RELEASE_5_0_0:1.3 RELEASE_4_7_0:1.3 RELEASE_4_6_2:1.3 RELEASE_4_6_1:1.3 RELEASE_4_6_0:1.3 RELEASE_5_0_DP1:1.3 RELEASE_4_5_0:1.3 RELEASE_4_4_0:1.3 RELEASE_4_3_0:1.3 RELEASE_4_2_0:1.3 RELEASE_4_1_1:1.3 RELEASE_4_1_0:1.2 RELEASE_3_5_0:1.2 RELEASE_4_0_0:1.2 RELEASE_3_4_0:1.2; locks; strict; comment @# @; 1.5 date 2011.04.24.16.37.51; author flz; state dead; branches; next 1.4; 1.4 date 2003.09.12.20.50.16; author kris; state Exp; branches; next 1.3; 1.3 date 2000.08.29.08.18.44; author asami; state Exp; branches; next 1.2; 1.2 date 99.09.24.01.20.23; author asami; state Exp; branches; next 1.1; 1.1 date 99.09.22.01.00.31; author asami; state Exp; branches; next ; desc @@ 1.5 log @Remove portbuild scripts from pcvs, as they now live in svn/projects. @ text @#!/bin/sh # prints out logs that are in dir1 but not in dir2 if [ $# -ne 3 ]; then echo "usage: $0 arch dir1 dir2" exit 1 fi here=$(pwd) arch=$1 dir1=$2 dir2=$3 fdir1=$here/${arch}-$dir1 fdir2=$here/${arch}-$dir2 ldir2=$(cd $fdir2; pwd | sed -e 's/e\./a./') plus="$(echo $2 $3 | sed -e 's/ /+/g')" of=$here/$arch-$plus.html echo "Logs that are in both $dir1 and $dir2" >$of echo "

Logs that are in both $dir1 and $dir2

" >>$of echo "" >>$of cd $fdir1 logs=$(find . -name \*.log -o -name \*.log.bz2 | sed -e 's/\.log\.bz2/\.log/g') nlogs=$(echo $logs | wc -w) if [ $nlogs -eq 0 ]; then echo "No errors" >>$of; else num=0 echo "" >>$of echo "" >>$of for i in $logs; do if [ -f ${fdir2}/${i}.bz2 -o -f ${fdir2}/${i} ]; then fname1=$(basename $i .bz2) fname=$(basename $fname1 .log) echo -n "" >> $of echo -n "" >>$of echo -n "" >>$of echo "" >>$of num=$(($num + 1)) fi done echo "
Log
$fname$fname

" >> $of echo "$num errors
" >> $of fi echo "
" >> $of echo "back to top" >> $of echo "" >>$of @ 1.4 log @Teach this script about different architectures. @ text @@ 1.3 log @Handle arbitrary number of log directories instead of just two. @ text @d3 1 a3 1 # prints out logs that are in all directories d5 2 a6 2 if [ $# -lt 2 ]; then echo "usage: $0 dir1 dir2 [dir3...]" d11 6 a16 1 dir1=$1 d18 1 a18 2 concat="$(echo $*)" plus="$(echo $* | sed -e 's/ /+/g')" d20 1 a20 1 of=$here/$plus.html d22 2 a23 2 echo "Logs that are in all of \"$concat\"" >$of echo "

Logs that are in all of \"$concat\"

" >>$of d26 3 a28 1 cd $here/$1 d30 2 a31 4 logs="$(echo *.log)" if [ "x$logs" = "x*.log" ]; then echo "No errors" >>$of d33 13 a45 13 shift while [ $# -gt 0 ]; do num=0 newlogs="" cd $here/$1 for log in *.log; do if echo $logs | grep -Fwq $log; then newlogs="$newlogs $log" num=$(($num + 1)) fi done logs=$newlogs shift d47 2 a48 17 if [ $num = 0 ]; then echo "No errors" >>$of else echo "" >>$of echo "" >>$of set $newlogs while [ $# -gt 0 ]; do echo -n "" >>$of shift done echo "
Log
" >>$of echo -n "" >>$of echo -n $(basename $1 .log) >>$of echo -n "" >>$of echo "

" >> $of echo "$num errors
" >> $of fi @ 1.2 log @Minor cleanup, remove excessive tests. @ text @d3 1 a3 1 # prints out logs that are in dir1 and in dir2 d5 2 a6 2 if [ $# != 2 ]; then echo "usage: $0 dir1 dir2" a11 3 dir2=$2 fdir1=$here/$dir1 fdir2=$here/$dir2 d13 2 a14 1 of=$here/$dir1+$dir2.html d16 4 a19 2 echo "Logs that are in both $dir1 and $dir2" >$of echo "

Logs that are in both $dir1 and $dir2

" >>$of d22 1 a22 1 cd $fdir1 d24 1 a24 1 set *.log d26 1 a26 1 if [ $# = 1 -a "x$1" = "x*.log" ]; then d29 1 a29 3 num=0 echo "" >>$of echo "" >>$of d31 19 a49 1 if [ -f ${fdir2}/$1 ]; then d55 5 a59 6 num=$(($num + 1)) fi shift done echo "
Log

" >> $of echo "$num errors
" >> $of @ 1.1 log @A small script to generate a list of logs that are in both 3-stable and 4-current. @ text @a14 1 ldir2=$(cd $fdir2; cd ../logs; pwd) d33 1 a33 1 if [ -f ${ldir2}/$1 -a -f ${fdir2}/$1 ]; then @