1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-07 09:43:00 +01:00
git/dotest
Linus Torvalds 853916ff7f Add "applypatch" and "dotest" scripts to tie it all together.
This should be getting it all pretty close to a working setup.
2005-04-12 01:40:20 -07:00

17 lines
571 B
Bash
Executable file

#!/bin/sh
##
## "dotest" is my stupid name for my patch-application script, which
## I never got around to renaming after I tested it. We're now on the
## second generation of scripts, still called "dotest".
##
## You give it a mbox-format collection of emails, and it will try to
## apply them to the kernel using "applypatch"
##
rm -rf .dotest
mkdir .dotest
mailsplit $1 .dotest || exit 1
for i in .dotest/*
do
mailinfo .dotest/msg .dotest/patch .dotest/file < $i > .dotest/info || exit 1
applypatch .dotest/msg .dotest/patch .dotest/file .dotest/info || exit 1
done