mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 02:10:42 +01:00
13 lines
469 B
Bash
Executable File
13 lines
469 B
Bash
Executable File
#!/bin/bash
|
|
mkdir _tmp_stylecheck
|
|
cd _tmp_stylecheck
|
|
git clone https://github.com/rsyslog/codestyle
|
|
cd codestyle
|
|
gcc --std=c99 stylecheck.c -o stylecheck
|
|
cd ../..
|
|
find -name "*.[ch]" | xargs _tmp_stylecheck/codestyle/stylecheck -w -f -l 130 && \
|
|
_tmp_stylecheck/codestyle/stylecheck plugins/imfile/imfile.c -l 130
|
|
# Note: we do stricter checks for some code sources that have been
|
|
# sufficiently cleaned up. That after the "&&" part of the statement.
|
|
rm -rf codestyle
|