mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-08 17:13:45 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
19 lines
378 B
Bash
Executable File
19 lines
378 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
: "${CPPCHECK_DIR:=$DIR/cppcheck/}"
|
|
|
|
if [ ! -d "$CPPCHECK_DIR" ]; then
|
|
git clone https://github.com/danmar/cppcheck.git $CPPCHECK_DIR
|
|
fi
|
|
|
|
cd $CPPCHECK_DIR
|
|
|
|
VERS="2.16.0"
|
|
git fetch --all --tags --force
|
|
git checkout $VERS
|
|
|
|
#make clean
|
|
make MATCHCOMPILTER=yes CXXFLAGS="-O2" -j8
|