diff options
author | linimon <linimon@FreeBSD.org> | 2006-09-23 15:44:34 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2006-09-23 15:44:34 +0800 |
commit | 9d9289925fa0a493a7d506095794909c37dcafa9 (patch) | |
tree | 29b45ea072e438ffa8c71a6297dce8c295b22667 /Tools | |
parent | b4e28ebb1bedf6042d814e1750913d0e544bec84 (diff) | |
download | freebsd-ports-gnome-9d9289925fa0a493a7d506095794909c37dcafa9.tar.gz freebsd-ports-gnome-9d9289925fa0a493a7d506095794909c37dcafa9.tar.zst freebsd-ports-gnome-9d9289925fa0a493a7d506095794909c37dcafa9.zip |
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.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dopackagestats | 9 |
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=" " 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=" " fi |