fi
# if this is the start of the diff, then it's time to stop looking
- diff=$(echo "$l" | grep "^---")
+ diff=$(echo "$l" | grep "^--- ")
if [ x"$diff" != x ]
then
#echo "diffstart!!!!!"
~/bin/msmtp-enqueue.sh -a coco $to
}
-STABLE_VERSION="$1"
+git_id="$1"
shift
-if [ "${STABLE_VERSION}" == "" ] ; then
- echo "Must provide kernel version to be told is bad\n"
+if [ "${git_id}" == "" ] ; then
+ echo "bad_stable GIT_ID KERNEL_VERSION"
+ echo "Must provide kernel version to be told is bad"
exit;
fi
-echo "STABLE_VERSION = ${STABLE_VERSION}"
+echo "git_id = ${git_id}"
-for git_id in $*
+for STABLE_VERSION in $*
do
+ echo "bad version = ${STABLE_VERSION}"
TMPFILE=`mktemp bad_patch.XXXXX` || exit 1
git show --pretty=email $git_id > $TMPFILE
reply $TMPFILE