ref: 7c063c346a361bca2e57e26e04e8fb48a05c8c7e dir: /bin/pa4/
#!/bin/rc 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 patch -p$p <$i }