shithub: iso

ref: 6c6f09d989e5db7242365e6844c67b618192f996
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>Source</h2>'
echo '<a href="http://shithub.us/moody/iso/HEAD/info.html">On shithub</a>'

echo '<h2>Logs</h2>'
for(i in `{ls -t /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