diff options
Diffstat (limited to 'Tools/portbuild/scripts/processlogs')
-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=" " |