aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-07-14 10:37:48 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-07-14 10:37:48 +0000
commitb8ce56aee354289d85e5f6540dd9d0f3057958da (patch)
treee1abc48e9f6d9269ced86e6d8261acc72b1358f1 /Tools
parent0d973156a703be9306fa58e7ba060bbe154b3780 (diff)
Generate permanent URLs in the error reports. The directories like
i386-5-latest that are linked to from the index.html are symlinks to dated directories (e.5.`date`), so the URLs in the error reports will expire with the start of the next build when the symlink is repointed. This change makes the URLs in the error reports use the realpath of the target file, so they do not expire.
Notes
Notes: svn path=/head/; revision=113623
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/processlogs11
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="&nbsp;"