aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2006-09-23 07:44:34 +0000
committerMark Linimon <linimon@FreeBSD.org>2006-09-23 07:44:34 +0000
commit3c741dc25bc90e04f2f439a26b3b9dbe61ad0d11 (patch)
treefd4b9503d4f861ab4f2315a36c2882083e556ee8
parent3387bdfaa1df37447acb3fdcb1fbbd0cc95426b9 (diff)
downloadports-3c741dc25bc90e04f2f439a26b3b9dbe61ad0d11.tar.gz
ports-3c741dc25bc90e04f2f439a26b3b9dbe61ad0d11.zip
Notes
-rwxr-xr-xTools/portbuild/scripts/dopackagestats9
1 files changed, 4 insertions, 5 deletions
diff --git a/Tools/portbuild/scripts/dopackagestats b/Tools/portbuild/scripts/dopackagestats
index 0f11f4bab38a..9e2f1c9f145f 100755
--- a/Tools/portbuild/scripts/dopackagestats
+++ b/Tools/portbuild/scripts/dopackagestats
@@ -68,13 +68,12 @@ write_row () {
fi
fi
- # column: datestamp of latest log
+ # column: datestamp and URL 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'`"
+ latest_suffix="$(cd $directory/logs; ls -rtTl | grep '\.log' | tail -1 | awk '{printf("%s\">%s %s</a>\n",$10,$6,$7)}')"
+ if [ "$latest_suffix" ]; then
+ latest="<a href=\"http://pointyhat.freebsd.org/errorlogs/$arch-$build-latest-logs/$latest_suffix"
else
latest="&nbsp;"
fi