aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2006-07-06 07:17:53 +0800
committerlinimon <linimon@FreeBSD.org>2006-07-06 07:17:53 +0800
commit4ff6acd29e7c60127c3a66987f2d14b50b3edb63 (patch)
tree51ed329b918c167d566820c73b5cfd7cf915ccb1 /Tools
parentf402b599a9886728a65039f440931785c417efc8 (diff)
downloadfreebsd-ports-gnome-4ff6acd29e7c60127c3a66987f2d14b50b3edb63.tar.gz
freebsd-ports-gnome-4ff6acd29e7c60127c3a66987f2d14b50b3edb63.tar.zst
freebsd-ports-gnome-4ff6acd29e7c60127c3a66987f2d14b50b3edb63.zip
Add a column for last-date stamp and clean up the formatting a bit.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/dopackagestats29
1 files changed, 22 insertions, 7 deletions
diff --git a/Tools/portbuild/scripts/dopackagestats b/Tools/portbuild/scripts/dopackagestats
index e077d96f780d..5a66000e5b84 100755
--- a/Tools/portbuild/scripts/dopackagestats
+++ b/Tools/portbuild/scripts/dopackagestats
@@ -27,12 +27,13 @@ for arch in ${SUPPORTED_ARCHS}; do
echo "<table border='1' cellpadding='4' bgcolor='#F2F2F2'>" >> ${TMPFILE}
echo "<tr>" >> ${TMPFILE}
echo "<td align='left' width='80'>&nbsp;</td>" >> ${TMPFILE}
- echo "<th align='left'>INDEX</th>" >> ${TMPFILE}
- echo "<th align='left'>packages</th>" >> ${TMPFILE}
- echo "<th align='left'>errors</th>" >> ${TMPFILE}
- echo "<th align='left'>skipped</th>" >> ${TMPFILE}
- echo "<th align='left'>missing</th>" >> ${TMPFILE}
- echo "<th align='left'>done?</th>" >> ${TMPFILE}
+ echo "<th width='60'>as of</th>" >> ${TMPFILE}
+ echo "<th>INDEX</th>" >> ${TMPFILE}
+ echo "<th>packages</th>" >> ${TMPFILE}
+ echo "<th>errors</th>" >> ${TMPFILE}
+ echo "<th>skipped</th>" >> ${TMPFILE}
+ echo "<th>missing</th>" >> ${TMPFILE}
+ echo "<th>done?</th>" >> ${TMPFILE}
echo "</tr>" >> ${TMPFILE}
# begin row
@@ -51,6 +52,19 @@ for arch in ${SUPPORTED_ARCHS}; do
# column: ARCH
echo "<th align='left'>$arch-$branch</th>" >> ${TMPFILE}
+ # column: datestamp of latest log
+ latest="&nbsp;"
+ if [ -d $directory/logs ]; then
+ #latest="$(cd $directory/logs; ls -rtTl | grep '\.log' | tail -1 | awk '{printf("%s %s %s %s\n",$6,$7,$8,$9)}')"
+ latest="$(cd $directory/logs; ls -rtTl | grep '\.log' | tail -1 | awk '{printf("%s %s\n",$6,$7)}')"
+ if [ "$latest" ]; then
+ #latest="$latest `date '+%Z'`"
+ else
+ latest="&nbsp;"
+ fi
+ fi
+ echo "<td align='left'>$latest</td>" >> ${TMPFILE}
+
# column: INDEX count
n_index=0
if [ -f $indexfile ]; then
@@ -100,7 +114,7 @@ for arch in ${SUPPORTED_ARCHS}; do
done_flag="Y"
fi
fi
- echo "<td align='right'>$done_flag</td>" >> ${TMPFILE}
+ echo "<td align='center'>$done_flag</td>" >> ${TMPFILE}
echo "</tr>" >> ${TMPFILE}
@@ -113,6 +127,7 @@ done
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>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}