shithub: iso

ref: e4322f4dffdea1ac61d67e2f0852982c65f5e98d
dir: /src/execfs/builds/index.rc/

View raw version
#!/bin/rc

root=/cfg/$sysname/src/execfs/builds

cat $root/header
rev=`{cat /usr/build/www/9front/latest}
echo '<h1>9front builds</h1>'

echo '<h2>Nightly ISO</h2>'
for(i in /usr/build/www/9front/*^$rev^*.gz){
	i=`{basename $i}
	echo '<a href="/9front/'^$i^'">'^$i^'</a><br>'
}

echo '<h2>Logs</h2>'
for(i in /usr/build/www/9front/*.status){
	cat $i | {
		res=`{read}
		commit=`{read}
	}
	rev=`{basename $i | sed 's/.status//g'}
	echo '<a>['^$res^']</a>'
	echo '<a href="http://git.9front.org/plan9front/plan9front/'^$commit^'/commit.html">'^$commit^'</a>'
	echo '<a href="/9front/9front-'^$rev^'.log">Build Logs</a><br>'
}

cat $root/footer