[Pcsclite-cvs-commit] r5520 - /trunk/PCSC/clang-analyze.sh

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jan 18 15:44:50 UTC 2011


Author: rousseau
Date: Tue Jan 18 15:44:44 2011
New Revision: 5520

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5520
Log:
script to call clang --analyze

Added:
    trunk/PCSC/clang-analyze.sh   (with props)

Added: trunk/PCSC/clang-analyze.sh
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/clang-analyze.sh?rev=5520&op=file
==============================================================================
--- trunk/PCSC/clang-analyze.sh (added)
+++ trunk/PCSC/clang-analyze.sh Tue Jan 18 15:44:44 2011
@@ -1,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+# do not use configfile.c since it is a lex file from configfile.l
+if [ $# -lt 1 ]
+then
+	files=$(ls -1 src/*.c | grep -v configfile)
+else
+	files="$@"
+fi
+inc="-I. -Isrc -Isrc/PCSC -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include "
+opt="--analyze "
+
+clang $inc $opt $files

Propchange: trunk/PCSC/clang-analyze.sh
------------------------------------------------------------------------------
    svn:executable = *




More information about the Pcsclite-cvs-commit mailing list