summaryrefslogtreecommitdiff
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
parent- Update to 0.33 (diff)
Since we already have the data from the grep, go ahead and make the 'latest
log' cell a link to it. My weak awk/sh skills are evident here, but it does the job.
Notes
Notes: svn path=/head/; revision=173634
-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