From 54630e0697f46feb4a22d295079907d1937eaf92 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 29 Apr 2013 21:12:55 -0300 Subject: [PATCH] atben/misc/mkpatches: script to generate mails for the ATBEN kernel patches --- atben/misc/mkpatches | 104 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100755 atben/misc/mkpatches diff --git a/atben/misc/mkpatches b/atben/misc/mkpatches new file mode 100755 index 0000000..b2fcef9 --- /dev/null +++ b/atben/misc/mkpatches @@ -0,0 +1,104 @@ +#!/bin/sh + +hdr() +{ + cat < +To: discussion@lists.en.qi-hardware.com +EOF +} + + +intro() +{ + hdr + case "$1" in + 0) cat <&2 + exit 1;; + esac +} + +diffs() +{ + case "$1" in + 1) git diff upstream/master include/linux/spi/at86rf230.h + git diff upstream/master drivers/net/ieee802154/at86rf230.c + ;; + 2) git diff upstream/master drivers/spi + ;; + 3) git diff f07af316acaa03939e749a3ffe909510e5b7d536 arch/mips + ;; + esac +} + +intro "$@" +echo --- +diffs "$@" | diffstat +echo +diffs "$@"