doteston commit Add "applypatch" and "dotest" scripts to tie it all together. (853916f)
   1#!/bin/sh
   2##
   3## "dotest" is my stupid name for my patch-application script, which
   4## I never got around to renaming after I tested it. We're now on the
   5## second generation of scripts, still called "dotest".
   6##
   7## You give it a mbox-format collection of emails, and it will try to
   8## apply them to the kernel using "applypatch"
   9##
  10rm -rf .dotest
  11mkdir .dotest
  12mailsplit $1 .dotest || exit 1
  13for i in .dotest/*
  14do
  15        mailinfo .dotest/msg .dotest/patch .dotest/file < $i > .dotest/info || exit 1
  16        applypatch .dotest/msg .dotest/patch .dotest/file .dotest/info || exit 1
  17done