ref: 37d860be30f79410ba695904f24df9b34d3f2a10
dir: /src/execfs/builds/index.rc/
#!/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>Nightly Drawterm Binaries</h2>'
for(i in `{ls /usr/build/www/drawterm/*.zip}){
i=`{basename $i}
echo '<a href="/drawterm/'^$i^'">'^$i^'</a><br>'
}
echo '<h2>Source</h2>'
echo '<a href="https://shithub.us/moody/iso/HEAD/info.html">On shithub</a>'
echo '<h2>Logs</h2>'
{
for(i in `{ls /usr/build/www/9front/*.status}){
basename $i | sed 's/.status//g'
}
} | sort -nr | {
while(i=`{read}){
cat /usr/build/www/9front/$i.status | {
res=`{read}
commit=`{read}
}
echo '<a>['^$res^']</a>'
if(test $i -gt 11310)
repo='https://git.9front.org/plan9front/9front/'
if not
repo='https://git.9front.org/plan9front/plan9front/'
echo '<a href="'^$repo^$commit^'/commit.html">'^$commit^'</a>'
echo '<a href="/9front/9front-'^$i^'.log">Build Logs</a>'
echo $i^'<br>'
}
}
cat $root/footer