1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-21 19:36:21 +02:00

Updated paths and improved commends for reformat script

This commit is contained in:
Pavel Odintsov 2022-04-20 21:31:13 +01:00
parent 7e1b002c86
commit 0babd49edc

View File

@ -1,7 +1,10 @@
#/usr/bin/bash
# If you want to prevent some code from automatic reformatting, please add it to .clang_formatter_excludes file
echo "We will reformat all your code"
for file in `find /home/odintsov/repos/fastnetmon_github/src -type f | egrep '\.(c|cpp|hpp|h)$' | egrep -vf /home/odintsov/repos/fastnetmon_github/src/.clang_formatter_excludes`;
for file in `find /home/odintsov/repos/fastnetmon_community/src -type f | egrep '\.(c|cpp|hpp|h)$' | egrep -vf /home/odintsov/repos/fastnetmon_community/src/.clang_formatter_excludes`;
do
echo "Reformattting $file";
clang-format -style=file -i $file;