Closed pmelange closed 4 years ago
In the end, the script that runs on the server is
#!/bin/bash
PATH=/bin:/usr/bin
cd /usr/local/src/www/htdocs/buildbot
(find . -type f | cut -c 3- ; \
grep "Firmware: git branch" unstable/*/*/VERSION.txt ; \
find . -name "VERSION.txt" -printf "UNIXTIME %C@ %p\n" \
) | lzma > /usr/local/src/www/htdocs/buildbot/.files.lzma.new
mv /usr/local/src/www/htdocs/buildbot/.files.lzma.new /usr/local/src/www/htdocs/buildbot/.files.lzma
and maybe it makes more sense to integrade into the master script, so that it updates after each worker uploads their stuff. This could also be put in combination with removing old devel builds.
I set up this script, for now, in cron.hourly/buildbot-update-lists
The script https://github.com/freifunk-berlin/util.berlin.freifunk.net/blob/master/www/hardware.php should be set up in a cronjob. This script updates the firmware download pages on util.berlin.