mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
16 lines
906 B
Bash
Executable File
16 lines
906 B
Bash
Executable File
#!/bin/bash
|
|
# Use this script to check MegaGlest Source Code for errors using cppcheck
|
|
# ----------------------------------------------------------------------------
|
|
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
|
# Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+
|
|
|
|
OUTFILE=./cppcheck.log
|
|
|
|
CPUS=`lscpu -p | grep -cv '^#'`
|
|
if [ "$CPUS" = '' ]; then CPUS=1; fi
|
|
|
|
#~/cppcheck-1.62/cppcheck ../../source/ -i ../../source/win32_deps -i ../../source/configurator -i ../../source/shared_lib/sources/libircclient -i ../../source/shared_lib/sources/platform/miniupnpc -j $CPUS --enable=all --force --verbose 2> $OUTFILE
|
|
cppcheck ../../source/ -i ../../source/win32_deps -i ../../source/configurator -i ../../source/shared_lib/sources/libircclient -i ../../source/shared_lib/sources/platform/miniupnpc -j $CPUS --enable=all --force --verbose 2> $OUTFILE
|
|
|
|
echo "Results from cppcheck were written to $OUTFILE"
|