1
0

mkfile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. d=/n/sources/plan9
  2. x=`{9fs sources; mount /srv/emelie /n/emelieother other}
  3. cd:V: /n/emelieother/rsc/plan9.iso
  4. /n/emelieother/rsc/plan9.iso:DV:
  5. t=/tmp/pdf.$pid
  6. mkdir $t
  7. #mv $d/sys/doc/*.pdf $t
  8. @{cd pc; mk cddisk; cd ..}
  9. rm -f $target
  10. bind pc/cddisk cdstub/bootdisk.img
  11. bind -a cdstub $d
  12. disk/mk9660 -9cj -v 'Plan 9 4th Edition' -s $d \
  13. -b bootdisk.img $target
  14. #mv $t/*.pdf $d/sys/doc
  15. rm $t
  16. scan:V:
  17. replica/scan /sys/lib/dist/sources.replica <scan.lock
  18. compresslog:V:
  19. awk -f logcompress.awk $d/dist/replica/plan9.log | awk -f logtime.awk -v 't='^`{date -n} >/tmp/plan9.log
  20. rm $d/dist/replica/plan9.log
  21. cp /tmp/plan9.log $d/dist/replica/plan9.log
  22. #restart:V:
  23. # rm -f $d/dist/replica/plan9.db
  24. # rm -f $d/dist/replica/plan9.log
  25. # chmod 664 $d/dist/replica/plan9.db >$d/dist/replica/plan9.db
  26. # chmod 664 $d/dist/replica/plan9.log >$d/dist/replica/plan9.log
  27. # chmod +a $d/dist/replica/plan9.log
  28. # mk scan
  29. odump:V:
  30. disk/dump9660 -9cj -v 'Plan 9 4e Dumps' -s $d \
  31. -p /sys/lib/sysconfig/proto/allproto /n/emelieother/rsc/distdump.iso
  32. cd.install:V:
  33. if(~ $sysname achille){ echo; echo; echo '*** run this on a real machine, like olive.'; exit bad }
  34. bzip2 -9 < /n/emelieother/rsc/plan9.iso >web.protect/nplan9.iso.bz2
  35. D.install:V:
  36. D=/n/roro/usr/rob/testplan9
  37. 9fs roro
  38. cp $D/sys/lib/dist/pc/ndisk /sys/lib/dist/web.protect/ndisk
  39. cp $D/sys/lib/dist/pc/9loaddebug /sys/lib/dist/web.protect/n9loaddebug
  40. reallyinstall:V:
  41. if(! ~ $sysname achille){ echo; echo; echo '*** this needs to run on achille.'; exit bad }
  42. cd web.protect
  43. for (i in plan9.iso.bz2 disk 9loaddebug vmware.tar.bz2){
  44. if(test -f n$i){
  45. mv $i _$i && { mv n$i $i || mv _$i $i }
  46. }
  47. }
  48. rm /srv/ramfs.9down4e
  49. /sys/lib/dist/startcache
  50. dump:V:
  51. rm -f /srv/9660.xxx
  52. 9660srv 9660.xxx
  53. mount /srv/9660.xxx /n/kremvax /n/emelieother/rsc/plan9.iso
  54. now=`{mtime /sys/lib/dist/web.protect/plan9.iso.bz2 | awk '{print $1}'}
  55. ls -l /rls/plan9/4e.iso
  56. disk/dump9660 -9cj -s /n/kremvax -n $now /rls/plan9/4e.iso
  57. ls -l /rls/plan9/4e.iso
  58. rm /srv/9660.xxx
  59. reencode:V:
  60. rm -f /n/emelieother/rsc/nplan9.iso
  61. rm -f /srv/9660.xxx
  62. 9660srv 9660.xxx
  63. mount /srv/9660.xxx /n/kremvax /n/emelieother/rsc/plan9.iso
  64. disk/mk9660 -9cj -v 'Plan 9 4th Edition' -s /n/kremvax \
  65. -b bootdisk.img /n/emelieother/rsc/nplan9.iso
  66. rm /srv/9660.xxx