From 7d3e7fee3878fa3738f1f48ac6ae6fb48f447b55 Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Sat, 8 Jul 2006 04:09:42 +0000 Subject: Add the -exp builds down at the end. Probably only of interest to portmgr, so do them separately in order not to break up the ease of browsing the most important stats, above. --- Tools/portbuild/scripts/dopackagestats | 43 +++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 11 deletions(-) (limited to 'Tools') diff --git a/Tools/portbuild/scripts/dopackagestats b/Tools/portbuild/scripts/dopackagestats index 54d819517878..86b7187b4639 100755 --- a/Tools/portbuild/scripts/dopackagestats +++ b/Tools/portbuild/scripts/dopackagestats @@ -49,8 +49,9 @@ write_row () { # first, gather data arch=$1 - branch=$2 - directory=${ROOT_DIRECTORY}/${arch}/${branch} + build=$2 + directory=${ROOT_DIRECTORY}/${arch}/${build} + branch=`echo $build | sed -e "s/-exp//"` if [ "$branch" = "4" ]; then indexfile=$directory/ports/INDEX else @@ -119,14 +120,14 @@ write_row () { # now write the row echo "" >> ${TMPFILE} - echo "$arch-$branch" >> ${TMPFILE} + echo "$arch-$build" >> ${TMPFILE} echo "$latest" >> ${TMPFILE} echo "$n_index" >> ${TMPFILE} echo "" >> ${TMPFILE} - echo "" >> ${TMPFILE} + echo "" >> ${TMPFILE} echo "$n_packages" >> ${TMPFILE} echo "" >> ${TMPFILE} - echo "" >> ${TMPFILE} + echo "" >> ${TMPFILE} echo "$n_errors" >> ${TMPFILE} echo "$n_duds" >> ${TMPFILE} echo "$n_missing" >> ${TMPFILE} @@ -159,15 +160,35 @@ write_footer () { write_header +# display all the mainstream builds first for arch in ${SUPPORTED_ARCHS}; do - write_table_begin - branches=`ls ${ROOT_DIRECTORY}/${arch} | grep '^[1-9]$' | sort` - for branch in ${branches}; do - write_row ${arch} ${branch} - done + builds=`ls ${ROOT_DIRECTORY}/${arch} | grep '^[1-9]$' | sort` + if [ ! -z "$builds" ]; then + write_table_begin - write_table_end + for build in ${builds}; do + write_row ${arch} ${build} + done + + write_table_end + fi +done + +# then display all -exp builds (probably only of interest to portmgr; +# would break up the logical flow of the above) +for arch in ${SUPPORTED_ARCHS}; do + + builds=`ls ${ROOT_DIRECTORY}/${arch} | grep '^[1-9]-exp$' | sort` + if [ ! -z "$builds" ]; then + write_table_begin + + for build in ${builds}; do + write_row ${arch} ${build} + done + + write_table_end + fi done write_footer -- cgit v1.2.3