1
0

okay 252 B

1234567891011121314
  1. #!/bin/rc
  2. rfork e
  3. if(! ~ $#* 1){
  4. echo usage: patch/okay dir >[1=2]
  5. exit usage
  6. }
  7. i=$1
  8. if(! test -s $i/files || ! test -s $i/readme)
  9. exit 'missing files'
  10. if(grep -v '^/[_a-zA-Z0-9.\-+/:]+ [_a-zA-Z0-9.\-+:]+$' $i/files)
  11. exit 'bad file list'
  12. exit 0