diff options
author | linimon <linimon@FreeBSD.org> | 2006-07-13 11:52:28 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2006-07-13 11:52:28 +0800 |
commit | b04f3af24a68db43bd70d56a0d8a77ad1cd867b3 (patch) | |
tree | f78291f1498c6a61b5149638055a37bb7adc33df /Tools | |
parent | 27f585f2c4000468f2b01ef729bb8ae2d8594e57 (diff) | |
download | freebsd-ports-gnome-b04f3af24a68db43bd70d56a0d8a77ad1cd867b3.tar.gz freebsd-ports-gnome-b04f3af24a68db43bd70d56a0d8a77ad1cd867b3.tar.zst freebsd-ports-gnome-b04f3af24a68db43bd70d56a0d8a77ad1cd867b3.zip |
Add the cvs checkout date so people can see how long the runs take; add
a comment about openoffice.org*; generalize a bit.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dopackagestats | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/dopackagestats b/Tools/portbuild/scripts/dopackagestats index 86b7187b4639..2259630736cd 100755 --- a/Tools/portbuild/scripts/dopackagestats +++ b/Tools/portbuild/scripts/dopackagestats @@ -9,7 +9,7 @@ SUPPORTED_ARCHS="amd64 i386 ia64 sparc64" ROOT_DIRECTORY=/var/portbuild -OUTFILE=packagestats.html +OUTFILE=`basename $0 | sed -e "s/^do//"`".html" TMPFILE=.${OUTFILE} # stylesheet seems like overkill for something this simple @@ -35,7 +35,8 @@ write_table_begin () { echo "<table border='1' cellpadding='4' cellspacing='1' bgcolor='$TABLEBGCOLOR'>" >> ${TMPFILE} echo "<tr>" >> ${TMPFILE} echo "<td align='left' width='80' bgcolor='$TABLEBGCOLOR'> </td>" >> ${TMPFILE} - echo "<th width='60' bgcolor='$THCOLOR'>as of</th>" >> ${TMPFILE} + echo "<th width='60' bgcolor='$THCOLOR'>cvs date</th>" >> ${TMPFILE} + echo "<th width='60' bgcolor='$THCOLOR'>latest log</th>" >> ${TMPFILE} echo "<th bgcolor='$THCOLOR'>INDEX</th>" >> ${TMPFILE} echo "<th bgcolor='$THCOLOR'>packages</th>" >> ${TMPFILE} echo "<th bgcolor='$THCOLOR'>errors</th>" >> ${TMPFILE} @@ -58,6 +59,15 @@ write_row () { indexfile=$directory/ports/INDEX-$branch fi + # column: date of CVS checkout + cvsdone=" " + if [ -f $directory/cvsdone ]; then + cvsdone="$(cat $directory/cvsdone | awk '{printf("%s %s\n",$2,$3)}')" + if [ -z "$cvsdone" ]; then + cvsdone=" " + fi + fi + # column: datestamp of latest log latest=" " if [ -d $directory/logs ]; then @@ -121,6 +131,7 @@ write_row () { # now write the row echo "<tr>" >> ${TMPFILE} echo "<th align='left' bgcolor='$THCOLOR'>$arch-$build</th>" >> ${TMPFILE} + echo "<td align='left' bgcolor='$cellcolor'>$cvsdone</td>" >> ${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} @@ -143,7 +154,8 @@ write_table_end () { write_footer () { echo "<p>explanation of columns:</p>" >> ${TMPFILE} echo "<ul>" >> ${TMPFILE} - echo "<li><b>as of</b> is the date of the latest logfile.</li>" >> ${TMPFILE} + echo "<li><b>latest log</b> is the date of the latest logfile.</li>" >> ${TMPFILE} + echo "<li><b>cvs date</b> is the date of the latest CVS checkout done by the script. It may be inaccurate if a manual checkout was done later.</li>" >> ${TMPFILE} echo "<li><b>INDEX</b> is number of ports in the INDEX file built from the latest cvs checkout.</li>" >> ${TMPFILE} echo "<li><b>packages</b> is number of packages successfully built.</li>" >> ${TMPFILE} echo "<li><b>errors</b> is number of packages that failed.</li>" >> ${TMPFILE} @@ -152,6 +164,11 @@ write_footer () { echo "<li><b>done</b> is whether that run terminated normally or not.</li>" >> ${TMPFILE} echo "</ul>" >> ${TMPFILE} + echo "<p>notes:</p>" >> ${TMPFILE} + echo "<ul>" >> ${TMPFILE} + echo "<li>on the -exp builds, editors/openoffice.org* are skipped to save time.</li>" >> ${TMPFILE} + echo "</ul>" >> ${TMPFILE} + echo "</body>" >> ${TMPFILE} echo "</html>" >> ${TMPFILE} } |