ref: e4322f4dffdea1ac61d67e2f0852982c65f5e98d
dir: /bin/buildisos.rc/
#!/bin/rc rfork en home=/usr/build webfs cd $home/code/plan9front archs=(amd64 386 arm arm64 spim) www=$home/www/9front . ./sys/lib/rootstub . ./sys/lib/rootbind # preclean cd /sys/src mk clean cd /sys/src/boot mk clean cd /sys/src/9 mk clean # build for cputype cd /sys/src mk install # build everything for(i in $archs)@{ rfork en objtype=$i bind -c /n/src9/$i /$i # user cd /sys/src mk install # kernel switch($objtype){ case amd64 cd /sys/src/9/pc64 mk install case 386 cd /sys/src/9/pc mk install case arm cd /sys/src/9/bcm mk 'CONF=pi' install mk 'CONF=pi2' install case arm64 cd /sys/src/9/bcm64 mk 'CONF=pi3' install mk 'CONF=pi4' install cd /sys/src/9/imx8 mk 'CONF=reform' install case spim cd /sys/src/9/mt7688/ mk install } # bootloader switch($objtype){ case 386 amd64 cd /sys/src/boot/pc mk install cd /sys/src/boot/efi mk install case arm arm64 cd /sys/src/boot/bcm mk cd /sys/src/boot/reform mk } } # postclean cd /sys/src mk clean cd /sys/src/boot mk clean cd /sys/src/9 mk clean # make manpage indices cd /sys/man mk fn mkdist { cd /sys/lib/dist mk $www/$1.gz } for(a in $archs){ switch($a){ case amd64 mkdist $release.amd64.iso case 386 mkdist $release.386.iso case arm mkdist $release.pi.img case arm64 mkdist $release.pi3.img mkdist $release.reform.img } }