2 # patch/diff [-w] patch-name
5 echo 'usage: patch/diff [-bmnwz] patch-name' >[1=2]
10 while (! ~ $#* 0 && ~ $1 -*) {
24 if(! test -d /n/sources/patch){
29 if(! test -d /n/sources/patch/$1){
30 echo 'no such patch' /n/sources/patch/$1 >[1=2]
34 builtin cd /n/sources/patch/$1 || exit nopatch
36 echo 'bad patch: '$status >[1=2]
43 diff $dopts $2.orig $d/$2 | sed 's/^/ /'
45 cat files | sed 's/^/xxx /' | rc