Add "applypatch" and "dotest" scripts to tie it all together.
[git.git] / dotest
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 ##
10 rm -rf .dotest
11 mkdir .dotest
12 mailsplit $1 .dotest || exit 1
13 for i in .dotest/*
14 do
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
17 done