script to run smatch
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 20 Apr 2013 08:29:22 +0000 (08:29 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 20 Apr 2013 08:29:22 +0000 (08:29 +0000)
scripts/smatch.sh [new file with mode: 0755]

diff --git a/scripts/smatch.sh b/scripts/smatch.sh
new file mode 100755 (executable)
index 0000000..6b506ba
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+SMATCH_DIR=$HOME/soft/smatch
+
+SCRIPT_DIR=`dirname $0`
+
+cd $SCRIPT_DIR/..
+make clean
+make CHECK="$SMATCH_DIR/smatch --full-path" CC=$SMATCH_DIR/cgcc | tee warns.txt
\ No newline at end of file