head 1.6; access; symbols RELEASE_7_4_0:1.5 RELEASE_8_2_0:1.5 RELEASE_6_EOL:1.5 RELEASE_8_1_0:1.5 RELEASE_7_3_0:1.5 RELEASE_8_0_0:1.5 RELEASE_7_2_0:1.5 RELEASE_7_1_0:1.5 RELEASE_6_4_0:1.5 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 RELEASE_3_3_0:1.1; locks; strict; comment @# @; 1.6 date 2011.04.24.16.37.51; author flz; state dead; branches; next 1.5; 1.5 date 2008.07.26.15.01.50; author kris; state Exp; branches; next 1.4; 1.4 date 2003.09.12.20.50.44; author kris; state Exp; branches; next 1.3; 1.3 date 2000.08.29.08.23.42; author asami; state Exp; branches; next 1.2; 1.2 date 99.09.24.01.19.22; author asami; state Exp; branches; next 1.1; 1.1 date 99.06.22.10.11.00; author asami; state Exp; branches; next ; desc @@ 1.6 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 # XXX out of date and disabled 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./') of=$here/$arch-$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 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 # foo else fname1=$(basename $i .bz2) fname=$(basename $fname1 .log) echo -n "" >>$of num=$(($num + 1)) fi done echo "
Log
" >>$of echo -n "" >>$of echo -n $fname >>$of echo -n "" >>$of echo "

" >> $of echo "$num errors
" >> $of fi echo "
" >> $of echo "back to top" >> $of echo "" >>$of @ 1.5 log @* Add comment that this is unused @ text @@ 1.4 log @Teach this script about different architectures. @ text @d4 1 @ 1.3 log @The errors and logs are now in the archive directory named [ae].${branch}.${date}, and "logs" and "errors" are just symlinks to them. @ text @d5 2 a6 2 if [ $# != 2 ]; then echo "usage: $0 dir1 dir2" d11 5 a15 4 dir1=$1 dir2=$2 fdir1=$here/$dir1 fdir2=$here/$dir2 d18 1 a18 1 of=$here/$dir1-$dir2.html d25 2 d28 2 a29 4 set *.log if [ $# = 1 -a "x$1" = "x*.log" ]; then echo "No errors" >>$of d34 6 a39 2 while [ $# -gt 0 ]; do if [ -f ${ldir2}/$1 -a ! -f ${fdir2}/$1 ]; then d41 2 a42 2 echo -n "" >>$of echo -n $(basename $1 .log) >>$of d45 1 a45 1 num=$(($num + 1)) a46 1 shift @ 1.2 log @Adjust to new directory structure. @ text @d15 1 a15 1 ldir2=$(cd $fdir2; pwd | sed -e 's/errors/alllogs/') @ 1.1 log @Three scripts to look into the error logs and generate the now-famous web page of errors. @ text @d15 1 a15 1 ldir2=$(cd $fdir2; cd ../logs; pwd) @