diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2004-07-14 10:37:48 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2004-07-14 10:37:48 +0000 |
commit | b8ce56aee354289d85e5f6540dd9d0f3057958da (patch) | |
tree | e1abc48e9f6d9269ced86e6d8261acc72b1358f1 /Tools | |
parent | 0d973156a703be9306fa58e7ba060bbe154b3780 (diff) | |
download | ports-b8ce56aee354289d85e5f6540dd9d0f3057958da.tar.gz ports-b8ce56aee354289d85e5f6540dd9d0f3057958da.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/processlogs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/processlogs b/Tools/portbuild/scripts/processlogs index c4397f37eeb6..95eb974b85af 100755 --- a/Tools/portbuild/scripts/processlogs +++ b/Tools/portbuild/scripts/processlogs @@ -6,6 +6,8 @@ buildlogdir=$(realpath .) if [ "$2" != "" ]; then buildlogdir="$2"; fi +baselogdir=$(basename ${buildlogdir}) + # establish which directory INDEX lives in (leave out for # backwards compatibility) indexlogdir=$(realpath .) @@ -15,6 +17,13 @@ if [ "$3" != "" ]; then indexlogdir="$3"; fi scriptdir=$(dirname $0) errorscript=$scriptdir/processonelog +# Figure out which arch we're building for +pb=/var/portbuild +rpb=$(realpath ${pb} | sed -e "s,/$,," ) + +arch=$(echo ${buildlogdir} | sed -e "s,${rpb}/,," | cut -f 1 -d /) +. ${pb}/${arch}/portbuild.conf + # create a name for the tempfile of=.index.html @@ -112,7 +121,7 @@ for i in `cat .logs | sort`; do echo "<tr>" >> $of - echo "<td><a href=\"$1\">$2</a></td>" >> $of + echo "<td><a href=\"http://${master}/errorlogs/${arch}-errorlogs/${baselogdir}/$1\">$2</a></td>" >> $of affby=$3 test $affby = "0" -o $affby = "-1" && affby=" " |