mkfile 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. d=/n/sources/plan9
  2. x=`{9fs sources; 9fs fsother; import -c tcp!204.178.31.2!666 /sys/lib/dist/web.protect}
  3. cd:V: /n/fsother/dist/plan9.iso
  4. ncd:V: /n/fsother/dist/plan9-new.iso.bz2
  5. ncd-dist:V: /n/fsother/dist/plan9-new.iso.bz2
  6. mk /sys/lib/dist/web.protect/plan9-new.iso.bz2
  7. cd-dist:V: /n/fsother/dist/plan9.iso.bz2
  8. mk /sys/lib/dist/web.protect/plan9.iso.bz2
  9. contrib-cd:V: /n/fsother/dist/contrib.iso.bz2
  10. /n/fsother/dist/%.iso:D: /n/sources/plan9/dist/replica/plan9.log
  11. @{cd pc; mk cddisk; cd ..}
  12. rm -f $target
  13. bind pc/cddisk cdstub/bootdisk.img
  14. if(! test -f $d/bootdisk.img)
  15. bind -a cdstub $d
  16. disk/mk9660 -9cj -v 'Plan 9 4th Ed.' -s $d \
  17. -b bootdisk.img $target
  18. /sys/lib/dist/web.protect/%.iso.bz2: /n/fsother/dist/%.iso.bz2
  19. cp $prereq $target
  20. scan:V:
  21. replica/scan /sys/lib/dist/sources.replica <scan.lock
  22. compresslog:V:
  23. awk -f logcompress.awk $d/dist/replica/plan9.log | awk -f logtime.awk -v 't='^`{date -n} >/tmp/plan9.log
  24. rm $d/dist/replica/plan9.log
  25. cp /tmp/plan9.log $d/dist/replica/plan9.log
  26. #restart:V:
  27. # rm -f $d/dist/replica/plan9.db
  28. # rm -f $d/dist/replica/plan9.log
  29. # chmod 664 $d/dist/replica/plan9.db >$d/dist/replica/plan9.db
  30. # chmod 664 $d/dist/replica/plan9.log >$d/dist/replica/plan9.log
  31. # chmod +a $d/dist/replica/plan9.log
  32. # mk scan
  33. odump:V:
  34. disk/dump9660 -9cj -v 'Plan 9 4e Dumps' -s $d \
  35. -p /sys/lib/sysconfig/proto/allproto /n/fsother/dist/distdump.iso
  36. cd.install:V:
  37. if(~ $sysname achille){ echo; echo; echo '*** run this on a real machine, like olive.'; exit bad }
  38. bzip2 -9 < /n/fsother/dist/plan9.iso >web.protect/nplan9.iso.bz2
  39. D.install:V:
  40. D=/n/roro/usr/rob/testplan9
  41. 9fs roro
  42. cp $D/sys/lib/dist/pc/ndisk /sys/lib/dist/web.protect/ndisk
  43. cp $D/sys/lib/dist/pc/9loaddebug /sys/lib/dist/web.protect/n9loaddebug
  44. reallyinstall:V:
  45. if(! ~ $sysname achille){ echo; echo; echo '*** this needs to run on achille.'; exit bad }
  46. cd web.protect
  47. for (i in plan9.iso.bz2 disk 9loaddebug vmware.zip){
  48. if(test -f n$i){
  49. mv $i _$i && { mv n$i $i || mv _$i $i }
  50. }
  51. }
  52. rm /srv/ramfs.9down4e
  53. /sys/lib/dist/startcache
  54. dump:V:
  55. rm -f /srv/9660.xxx
  56. 9660srv 9660.xxx
  57. mount /srv/9660.xxx /n/kremvax /n/fsother/dist/plan9.iso
  58. now=`{mtime /sys/lib/dist/web.protect/plan9.iso.bz2 | awk '{print $1}'}
  59. ls -l /rls/plan9/4e.iso
  60. disk/dump9660 -9cj -s /n/kremvax -n $now /rls/plan9/4e.iso
  61. ls -l /rls/plan9/4e.iso
  62. rm /srv/9660.xxx
  63. reencode:V:
  64. rm -f /n/fsother/dist/nplan9.iso
  65. rm -f /srv/9660.xxx
  66. 9660srv 9660.xxx
  67. mount /srv/9660.xxx /n/kremvax /n/fsother/dist/plan9.iso
  68. disk/mk9660 -9cj -v 'Plan 9 4th Edition' -s /n/kremvax \
  69. -b bootdisk.img /n/fsother/dist/nplan9.iso
  70. rm /srv/9660.xxx
  71. /n/fsother/dist/%.iso.bz2:D: /n/fsother/dist/%.iso
  72. bzip2 -9 < /n/fsother/dist/$stem.iso > /n/fsother/dist/n$stem.iso.bz2 &&
  73. {mv /n/fsother/dist/$stem.iso.bz2 /n/fsother/dist/_$stem.iso.bz2
  74. mv /n/fsother/dist/n$stem.iso.bz2 /n/fsother/dist/$stem.iso.bz2
  75. }
  76. echo `{date} md5 `{md5sum </n/fsother/dist/$stem.iso.bz2} sha1 `{sha1sum </n/fsother/dist/$stem.iso.bz2} $stem.iso.bz2 >>/usr/web/plan9checksums.txt
  77. /n/fsother/dist/contrib.iso:DV:
  78. rm -f $target
  79. disk/mk9660 -9cj -v 'Plan 9 Extras' -s /n/sources -p ./contrib.proto $target
  80. rebuild-mail:V:
  81. rebuild
  82. if(test -s buildit.out){
  83. dd=`{date}
  84. dd=$"date
  85. mail -s 'nightly build errors '^$dd 9trouble <buildit.out
  86. }
  87. if(test -s checkbuild.out){
  88. dd=`{date}
  89. dd=$"date
  90. mail -s 'nightly build differences '^$dd 9trouble <checkbuild.out
  91. }
  92. scansources-mail:V:
  93. dd=`{date}
  94. dd=$"dd
  95. scansources |mail -s 'nightly fs vs. martha scan '^$dd 9trouble
  96. worldwritable-mail:V:
  97. cd /n/sources; /usr/rsc/bin/$cputype/lsr -t -d | awk '$2 ~ /[2367]$/' |{grep -v '^./patch' >/sys/lib/dist/writable || status=''}
  98. if(test -s /sys/lib/dist/writable){
  99. dd=`{date}
  100. dd=$"date
  101. mail -s 'WRITABLE FILES ON SOURCES '^$dd 9trouble </sys/lib/dist/writable
  102. }
  103. status=''