Add a script to run cppcheck over all projects.
authorMaxim Mamontov <madf@madf.info>
Tue, 20 Mar 2018 10:23:16 +0000 (12:23 +0200)
committerMaxim Mamontov <madf@madf.info>
Tue, 20 Mar 2018 10:23:16 +0000 (12:23 +0200)
runcheck.sh [new file with mode: 0755]

diff --git a/runcheck.sh b/runcheck.sh
new file mode 100755 (executable)
index 0000000..9115cc0
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+INCLUDES="-I include/
+          -I stglibs/common.lib/include/
+          -I stglibs/conffiles.lib/include/
+          -I stglibs/crypto.lib/include/
+          -I stglibs/dotconfpp.lib/include/
+          -I stglibs/ia.lib/include/
+          -I stglibs/ibpp.lib/include/
+          -I stglibs/logger.lib/include/
+          -I stglibs/pinger.lib/include/
+          -I stglibs/scriptexecuter.lib/include/
+          -I stglibs/smux.lib/include/
+          -I stglibs/srvconf.lib/include/"
+
+PROJECTS="projects/libs
+          projects/rscriptd
+          projects/sgauth
+          projects/sgconf
+          projects/sgconf_xml
+          projects/sgconv
+          projects/stargazer"
+
+cppcheck ${INCLUDES} --enable=all -q ${PROJECTS}