]> git.sur5r.net Git - openocd/commitdiff
tools: add checkpatch script
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 3 Nov 2011 23:33:37 +0000 (23:33 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Fri, 4 Nov 2011 09:56:22 +0000 (09:56 +0000)
execute from openocd root dir after commiting change but before
pushing to gerrit.
tools/checkpatch.sh

This is the same script used by the jenkins build server to validate
a change.

Change-Id: Ib40d44b160e1c50a5e47ab55fc48a554381ea763
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/167
Tested-by: jenkins
tools/checkpatch.sh [new file with mode: 0644]

diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh
new file mode 100644 (file)
index 0000000..33b6dfc
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+#
+
+git format-patch -M --stdout HEAD^ | tools/scripts/checkpatch.pl - --no-tree