diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2006-07-08 04:09:42 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2006-07-08 04:09:42 +0000 |
commit | 7d3e7fee3878fa3738f1f48ac6ae6fb48f447b55 (patch) | |
tree | 50bbb4b54d1338947e9a4b89986883d29f3caf5e /Tools | |
parent | 901b9f75cb5e298b1422c224232b9f507ae5ce5a (diff) | |
download | ports-7d3e7fee3878fa3738f1f48ac6ae6fb48f447b55.tar.gz ports-7d3e7fee3878fa3738f1f48ac6ae6fb48f447b55.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dopackagestats | 43 |
1 files changed, 32 insertions, 11 deletions
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 "<tr>" >> ${TMPFILE} - echo "<th align='left' bgcolor='$THCOLOR'>$arch-$branch</th>" >> ${TMPFILE} + echo "<th align='left' bgcolor='$THCOLOR'>$arch-$build</th>" >> ${TMPFILE} echo "<td align='left' bgcolor='$cellcolor'>$latest</td>" >> ${TMPFILE} echo "<td align='right' bgcolor='$cellcolor'>$n_index</td>" >> ${TMPFILE} echo "<td align='right' bgcolor='$cellcolor'>" >> ${TMPFILE} - echo "<a href='http://pointyhat.freebsd.org/errorlogs/$arch-$branch-latest-logs'>" >> ${TMPFILE} + echo "<a href='http://pointyhat.freebsd.org/errorlogs/$arch-$build-latest-logs'>" >> ${TMPFILE} echo "$n_packages</a></td>" >> ${TMPFILE} echo "<td align='right' bgcolor='$cellcolor'>" >> ${TMPFILE} - echo "<a href='http://pointyhat.freebsd.org/errorlogs/$arch-$branch-latest'>" >> ${TMPFILE} + echo "<a href='http://pointyhat.freebsd.org/errorlogs/$arch-$build-latest'>" >> ${TMPFILE} echo "$n_errors</a></td>" >> ${TMPFILE} echo "<td align='right' bgcolor='$cellcolor'>$n_duds</td>" >> ${TMPFILE} echo "<td align='right' bgcolor='$cellcolor'>$n_missing</td>" >> ${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 |