]>
git.ipfire.org Git - thirdparty/git.git/blob - dotest
a3e3d35ae0afa358f01b49eecb358d64c616c3e4
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".
7 ## You give it a mbox-format collection of emails, and it will try to
8 ## apply them to the kernel using "applypatch"
10 ## dotest [ -q ] mail_archive [Signoff_file]
16 -q) touch .dotest
/.query_apply
19 mailsplit
$1 .dotest ||
exit 1
22 mailinfo .dotest
/msg .dotest
/patch .dotest
/file < $i > .dotest
/info ||
exit 1
23 applypatch .dotest
/msg .dotest
/patch .dotest
/file .dotest
/info
"$2"
25 if [ $ret -ne 0 ]; then
26 # 2 is a special exit code from applypatch to indicate that
27 # the patch wasn't applied, but continue anyway
28 [ $ret -ne 2 ] && exit $ret