summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-08 21:18:31 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-08 21:18:31 -0300
commit1439b403314a1c183c00808a5d2574d4c22b8a63 (patch)
tree779ecd2e6f3da48092b4cd2d219175fd6c4e554f
parent92d4427b60de23b7e9a8761f11f68250a34f40f4 (diff)
downloadmediapointer-dvb-s2-1439b403314a1c183c00808a5d2574d4c22b8a63.tar.gz
mediapointer-dvb-s2-1439b403314a1c183c00808a5d2574d4c22b8a63.tar.bz2
Validates changesets using checkpatch
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rwxr-xr-xmailimport8
1 files changed, 7 insertions, 1 deletions
diff --git a/mailimport b/mailimport
index b072bf5f3..31638f902 100755
--- a/mailimport
+++ b/mailimport
@@ -32,6 +32,10 @@ if [ "$EDITOR" == "" ]; then
EDITOR="nano -w"
fi
+if [ "$CHECKPATCH" == "" ]; then
+ CHECKPATCH="/lib/modules/`uname -r`/build/scripts/checkpatch.pl"
+fi
+
DIR=$TMPDIR/mailimport$$
mkdir $DIR
if [ "$?" != "0" ]; then
@@ -194,7 +198,9 @@ for i in $DIR/*; do
echo "Signed-off-by: $CHANGE_LOG_NAME <$CHANGE_LOG_EMAIL_ADDRESS>" >>$DIR/msg2
echo "cat $DIR/author2 $DIR/msg2 $DIR/patch >$out"
- cat $DIR/author2 $DIR/msg2 $DIR/patch >$out
+ $CHECKPATCH -q --notree $i|perl -ne '{ print "# $_"; }' >$out
+ cat $DIR/author2 $DIR/msg2 $DIR/patch >>$out
+
apply_patch $out
done