iso 656 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/rc
  2. # Derived from the 9legacy build scripts.
  3. rfork en
  4. . funcs
  5. mkdir /tmp/dist
  6. bind -c $build/sys /sys
  7. bind -c $build/386 /386
  8. if (test -d $build/sys/src/9/pcboot) {
  9. ls -l /386
  10. aux/stub /sys/lib/dist/cdstub/9load
  11. aux/stub /sys/lib/dist/cdstub/pbsraw
  12. sed /'mk cddisk'/d /sys/lib/dist/mkfile > /sys/lib/dist/mkfile.new
  13. mv /sys/lib/dist/mkfile.new /sys/lib/dist/mkfile
  14. rm -f $build/other/dist/*
  15. cd /sys/lib/dist && mk ncd
  16. cd /sys/lib/dist/pc && mk clean
  17. # chmod +w $cdstub
  18. # rm -f $cdstub/9load
  19. # rm -f $cdstub/pbsraw
  20. # chmod -w $cdstub
  21. }
  22. if not {
  23. rm -f $build/other/dist/*
  24. cd /sys/lib/dist && mk ncd
  25. cd /sys/lib/dist/pc && mk clean
  26. }