list 321 B

1234567891011121314151617181920212223
  1. #!/bin/rc
  2. if(! test -d /n/sources/patch){
  3. rfork n
  4. 9fs sources
  5. }
  6. cd /n/sources/patch
  7. if(~ $#* 0)
  8. *=(`{ls -t})
  9. for(i in $*){
  10. ls -ld $i
  11. if(patch/okay $i){
  12. cat $i/files | awk '{print " " $1}'
  13. cat $i/readme | sed 's/^/ /;5q'
  14. if(test -f $i/notes)
  15. cat $i/notes
  16. }
  17. if not
  18. echo ' 'bad patch: $status >[2=1]
  19. }