main 526 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/rc
  2. # Derived from the 9legacy build scripts.
  3. rfork en
  4. . funcs
  5. task=( \
  6. # prepare \
  7. # download \
  8. # patch \
  9. # checkpatch \
  10. # cleanpatch \
  11. mod \
  12. build \
  13. checkbuild \
  14. bootdisk \
  15. repl \
  16. iso \
  17. copy \
  18. )
  19. # usb: add usb and send-usb after iso and send
  20. if(! test -d log)
  21. mkdir log
  22. if not
  23. rm -f log/*
  24. echo target is $target
  25. if (! test -f $patches){
  26. echo $patches does not exist
  27. exit
  28. }
  29. for(i in $task){
  30. echo -n $i'... '
  31. $i >log/$i >[2=1]
  32. if(~ $status '')
  33. echo done
  34. if not{
  35. echo failed
  36. exit failed
  37. }
  38. }