ref: 8fa9d99424da17b8ac3e67fb6d5563bf71f51e56
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 /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 -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="https://git.9front.org/plan9front/plan9front/'^$commit^'/commit.html">'^$commit^'</a>' echo '<a href="/9front/9front-'^$rev^'.log">Build Logs</a><br>' } cat $root/footer