ref: a886ed5c616f4fd5aa79eeeb6c2351a33901e365
dir: /bin/pa4/
#!/bin/rc -e
for(i in $*){
if(! test -f $i){
echo usage: $0 patch..
exit usage
}
h=`{sed 's,--- //.git/fs/.*,git,;q' $i}
p=1
if(~ git $h)
p=0
ape/patch --no-backup-if-mismatch -p$p <$i
}