head 1.34; access; symbols RELEASE_7_4_0:1.33 RELEASE_8_2_0:1.33 RELEASE_6_EOL:1.33 RELEASE_8_1_0:1.31 RELEASE_7_3_0:1.26 RELEASE_8_0_0:1.24 RELEASE_7_2_0:1.22 RELEASE_7_1_0:1.22 RELEASE_6_4_0:1.22 RELEASE_5_EOL:1.20 RELEASE_7_0_0:1.19 RELEASE_6_3_0:1.19 PRE_XORG_7:1.17 RELEASE_4_EOL:1.14 RELEASE_6_2_0:1.13; locks; strict; comment @# @; 1.34 date 2011.04.24.16.37.51; author flz; state dead; branches; next 1.33; 1.33 date 2010.08.16.23.59.32; author linimon; state Exp; branches; next 1.32; 1.32 date 2010.08.16.09.17.05; author linimon; state Exp; branches; next 1.31; 1.31 date 2010.06.28.01.59.25; author linimon; state Exp; branches; next 1.30; 1.30 date 2010.06.25.23.20.14; author linimon; state Exp; branches; next 1.29; 1.29 date 2010.05.25.20.08.56; author linimon; state Exp; branches; next 1.28; 1.28 date 2010.05.25.07.37.48; author linimon; state Exp; branches; next 1.27; 1.27 date 2010.05.20.04.04.24; author linimon; state Exp; branches; next 1.26; 1.26 date 2010.02.19.16.15.58; author linimon; state Exp; branches; next 1.25; 1.25 date 2009.11.17.04.49.41; author linimon; state Exp; branches; next 1.24; 1.24 date 2009.08.23.10.08.15; author linimon; state Exp; branches; next 1.23; 1.23 date 2009.06.03.03.42.30; author linimon; state Exp; branches; next 1.22; 1.22 date 2008.09.18.06.01.57; author linimon; state Exp; branches; next 1.21; 1.21 date 2008.09.17.18.01.07; author linimon; state Exp; branches; next 1.20; 1.20 date 2007.12.23.17.50.29; author linimon; state Exp; branches; next 1.19; 1.19 date 2007.10.16.00.37.03; author linimon; state Exp; branches; next 1.18; 1.18 date 2007.07.22.04.36.49; author linimon; state Exp; branches; next 1.17; 1.17 date 2007.03.23.05.49.49; author linimon; state Exp; branches; next 1.16; 1.16 date 2007.03.09.02.43.55; author linimon; state Exp; branches; next 1.15; 1.15 date 2007.02.07.08.00.20; author linimon; state Exp; branches; next 1.14; 1.14 date 2006.11.25.15.51.02; author linimon; state Exp; branches; next 1.13; 1.13 date 2006.09.23.07.44.34; author linimon; state Exp; branches; next 1.12; 1.12 date 2006.09.23.05.39.53; author linimon; state Exp; branches; next 1.11; 1.11 date 2006.07.13.03.52.28; author linimon; state Exp; branches; next 1.10; 1.10 date 2006.07.08.04.09.42; author linimon; state Exp; branches; next 1.9; 1.9 date 2006.07.08.03.33.51; author linimon; state Exp; branches; next 1.8; 1.8 date 2006.07.08.03.33.06; author linimon; state Exp; branches; next 1.7; 1.7 date 2006.07.06.04.54.53; author linimon; state Exp; branches; next 1.6; 1.6 date 2006.07.05.23.30.42; author linimon; state Exp; branches; next 1.5; 1.5 date 2006.07.05.23.29.45; author linimon; state Exp; branches; next 1.4; 1.4 date 2006.07.05.23.17.53; author linimon; state Exp; branches; next 1.3; 1.3 date 2006.06.28.22.46.18; author linimon; state Exp; branches; next 1.2; 1.2 date 2006.06.28.04.27.43; author linimon; state Exp; branches; next 1.1; 1.1 date 2006.06.27.05.31.32; author linimon; state Exp; branches; next ; desc @@ 1.34 log @Remove portbuild scripts from pcvs, as they now live in svn/projects. @ text @#!/bin/sh # $FreeBSD: ports/Tools/portbuild/scripts/dopackagestats,v 1.33 2010/08/16 23:59:32 linimon Exp $ # # create HTML showing numbers of packages vs errors. Run this in a directory # accessible to the web server. # pb=/var/portbuild . ${pb}/conf/server.conf here=`pwd` tmp=`basename $0 | sed -e "s/^do//"`".html" OUTFILE="${here}/${tmp}" TMPFILE="${here}/.${tmp}" #journalname="make" journalname="journal" # stylesheet seems like overkill for something this simple TABLEBGCOLOR="#F0F0F0" THCOLOR="#E0E0FF" TDCOLOR_DONE="lightgreen" TDCOLOR_NOT_DONE="lightyellow" # subroutines write_header () { echo "" > ${TMPFILE} echo "
" >> ${TMPFILE} echo "as of `date`
" >> ${TMPFILE} } write_table_begin () { echo "" >> ${TMPFILE} echo " | updated | " >> ${TMPFILE} # MCL removed 20090808 -- this takes way too long # echo "latest log | " >> ${TMPFILE} echo "INDEX | " >> ${TMPFILE} echo "build logs | " >> ${TMPFILE} echo "packages | " >> ${TMPFILE} echo "errors | " >> ${TMPFILE} echo "skipped | " >> ${TMPFILE} echo "not yet built | " >> ${TMPFILE} echo "queue length | " >> ${TMPFILE} echo "running? | " >> ${TMPFILE} echo "completed? | " >> ${TMPFILE} echo "$arch-$build | " >> ${TMPFILE} echo "" >> ${TMPFILE} if [ ! -z "$have_updated" ]; then echo "" >> ${TMPFILE} echo "$updated" >> ${TMPFILE} else echo " " >> ${TMPFILE} fi echo " | " >> ${TMPFILE} # MCL removed 20090808 -- this takes way too long # echo "" >> ${TMPFILE} # if [ ! -z "$have_latest" ]; then # echo "$latest" >> ${TMPFILE} # else # echo " " >> ${TMPFILE} # fi # echo " | " >> ${TMPFILE} # note: ports/INDEX-n is copied to a file called errorlogs/INDEX echo "" >> ${TMPFILE} if [ ! -z "$have_index" ]; then echo "" >> ${TMPFILE} echo "$n_index" >> ${TMPFILE} else echo " " >> ${TMPFILE} fi echo " | " >> ${TMPFILE} echo "" >> ${TMPFILE} if [ ! -z "$have_logs" ]; then echo "" >> ${TMPFILE} echo "$n_logs" >> ${TMPFILE} else echo " " >> ${TMPFILE} fi echo " | " >> ${TMPFILE} echo "" >> ${TMPFILE} if [ ! -z "$have_packages" ]; then echo "" >> ${TMPFILE} echo "$n_packages" >> ${TMPFILE} else echo " " >> ${TMPFILE} fi echo " | " >> ${TMPFILE} echo "" >> ${TMPFILE} if [ ! -z "$have_errors" ]; then echo "" >> ${TMPFILE} echo "$n_errors" >> ${TMPFILE} else echo " " >> ${TMPFILE} fi echo " | " >> ${TMPFILE} echo "" >> ${TMPFILE} if [ ! -z "$have_duds" ]; then echo "" >> ${TMPFILE} echo "$n_duds" >> ${TMPFILE} else echo " " >> ${TMPFILE} fi echo " | " >> ${TMPFILE} echo "" >> ${TMPFILE} if [ ! -z "$m_not_yet_built" ]; then echo "$n_not_yet_built" >> ${TMPFILE} else echo " " >> ${TMPFILE} fi echo " | " >> ${TMPFILE} echo "" >> ${TMPFILE} if [ ! -z "$queue_length" ]; then echo "$queue_length" >> ${TMPFILE} else echo " " >> ${TMPFILE} fi echo " | " >> ${TMPFILE} echo "$running_flag | " >> ${TMPFILE} echo "$completed_flag | " >> ${TMPFILE} echo "" >> ${TMPFILE} } write_table_end () { echo "
---|
explanation of columns:
" >> ${TMPFILE} echo "notes:
" >> ${TMPFILE} # echo "notes:
" >> ${TMPFILE} echo "as of `date`
" >> ${TMPFILE} d143 10 a152 10 echo "explanation of columns:
" >> ${TMPFILE} echo "" >> ${TMPFILE} echo " | as of | " >> ${TMPFILE} echo "INDEX | " >> ${TMPFILE} echo "packages | " >> ${TMPFILE} echo "errors | " >> ${TMPFILE} echo "skipped | " >> ${TMPFILE} echo "missing | " >> ${TMPFILE} echo "done? | " >> ${TMPFILE} d111 7 d120 4 a123 4 echo "$arch-$branch | " >> ${TMPFILE} echo "$latest | " >> ${TMPFILE} echo "$n_index | " >> ${TMPFILE} echo "" >> ${TMPFILE} d126 1 a126 1 echo " | " >> ${TMPFILE} d129 3 a131 3 echo " | $n_duds | " >> ${TMPFILE} echo "$n_missing | " >> ${TMPFILE} echo "$done_flag | " >> ${TMPFILE} @ 1.5 log @Refactor. No code changes yet. @ text @d2 1 a2 1 # $FreeBSD# @ 1.4 log @Add a column for last-date stamp and clean up the formatting a bit. @ text @d43 2 a51 5 echo "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$arch-$branch | " >> ${TMPFILE} a62 1 echo "$latest | " >> ${TMPFILE} a68 1 echo "$n_index | " >> ${TMPFILE} a74 3 echo "" >> ${TMPFILE} echo "" >> ${TMPFILE} echo "$n_packages | " >> ${TMPFILE} a82 3 echo "" >> ${TMPFILE} echo "" >> ${TMPFILE} echo "$n_errors | " >> ${TMPFILE} a88 1 echo "$n_duds | " >> ${TMPFILE} a95 1 echo "$n_missing | " >> ${TMPFILE} d104 14 a118 1 @ 1.3 log @Handle the case where the size of INDEX is zero (e.g. during new builds). @ text @d30 7 a36 6 echo "INDEX | " >> ${TMPFILE} echo "packages | " >> ${TMPFILE} echo "errors | " >> ${TMPFILE} echo "skipped | " >> ${TMPFILE} echo "missing | " >> ${TMPFILE} echo "done? | " >> ${TMPFILE} d55 13 d117 1 a117 1 echo "$done_flag | " >> ${TMPFILE} d130 1 @ 1.2 log @Fix edit-o. @ text @d89 5 a93 1 n_missing=`expr $n_index - $n_packages - $n_errors - $n_duds` @ 1.1 log @Creates an HTML file with tables for each architecture which summarize the number of packages built vs. packages that failed, along with some other related information. @ text @d116 1 a116 1 echo "