aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2006-07-13 03:52:28 +0000
committerMark Linimon <linimon@FreeBSD.org>2006-07-13 03:52:28 +0000
commit8465bb92e6b0599f422f88257a702b2b63dff0d9 (patch)
tree11f332c80e06322f503a9b63e2a56e7ab4bf8b72 /Tools
parente1a85577ba74bfe75817f1ce42015fdf5b2d0c83 (diff)
downloadports-8465bb92e6b0599f422f88257a702b2b63dff0d9.tar.gz
ports-8465bb92e6b0599f422f88257a702b2b63dff0d9.zip
Add the cvs checkout date so people can see how long the runs take; add
a comment about openoffice.org*; generalize a bit.
Notes
Notes: svn path=/head/; revision=167668
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/dopackagestats23
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'>&nbsp;</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="&nbsp;"
+ if [ -f $directory/cvsdone ]; then
+ cvsdone="$(cat $directory/cvsdone | awk '{printf("%s %s\n",$2,$3)}')"
+ if [ -z "$cvsdone" ]; then
+ cvsdone="&nbsp;"
+ fi
+ fi
+
# column: datestamp of latest log
latest="&nbsp;"
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}
}