aboutsummaryrefslogtreecommitdiff
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2006-07-08 04:09:42 +0000
committerMark Linimon <linimon@FreeBSD.org>2006-07-08 04:09:42 +0000
commit7d3e7fee3878fa3738f1f48ac6ae6fb48f447b55 (patch)
tree50bbb4b54d1338947e9a4b89986883d29f3caf5e /Tools/portbuild
parent901b9f75cb5e298b1422c224232b9f507ae5ce5a (diff)
downloadports-7d3e7fee3878fa3738f1f48ac6ae6fb48f447b55.tar.gz
ports-7d3e7fee3878fa3738f1f48ac6ae6fb48f447b55.zip
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.
Notes
Notes: svn path=/head/; revision=167177
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/dopackagestats43
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