remove 285 B

12345678910111213141516171819
  1. #!/bin/rc
  2. rfork e
  3. if(~ $#* 0){
  4. echo 'usage: patch/remove patch-name...' >[1=2]
  5. exit usage
  6. }
  7. if(! test -d /n/sources/patch){
  8. rfork n
  9. 9fs sources
  10. }
  11. for(i){
  12. if(! test -d /n/sources/patch/$i)
  13. echo 'no such patch' /n/sources/patch/$i >[1=2]
  14. if not
  15. rm -rf /n/sources/patch/$i
  16. }