mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
make format excludes be able to be files
This commit is contained in:
parent
64bbde08b6
commit
484e177589
1 changed files with 6 additions and 6 deletions
12
format.sh
12
format.sh
|
|
@ -24,12 +24,12 @@ include=("cockatrice/src" \
|
||||||
"oracle/src" \
|
"oracle/src" \
|
||||||
"servatrice/src" \
|
"servatrice/src" \
|
||||||
"tests")
|
"tests")
|
||||||
exclude=("libcockatrice_rng/libcockatrice/rng/sfmt" \
|
exclude=("libcockatrice_rng/libcockatrice/rng/sfmt/" \
|
||||||
"libcockatrice_utility/libcockatrice/utility/peglib.h" \
|
"libcockatrice_utility/libcockatrice/utility/peglib.h" \
|
||||||
"oracle/src/lzma" \
|
"oracle/src/lzma/" \
|
||||||
"oracle/src/qt-json" \
|
"oracle/src/qt-json/" \
|
||||||
"oracle/src/zip" \
|
"oracle/src/zip/" \
|
||||||
"servatrice/src/smtp")
|
"servatrice/src/smtp/")
|
||||||
exts=("cpp" "h" "proto")
|
exts=("cpp" "h" "proto")
|
||||||
cf_cmd="clang-format"
|
cf_cmd="clang-format"
|
||||||
branch="origin/master"
|
branch="origin/master"
|
||||||
|
|
@ -240,7 +240,7 @@ fi
|
||||||
# filter excludes
|
# filter excludes
|
||||||
for path in "${exclude[@]}"; do
|
for path in "${exclude[@]}"; do
|
||||||
for i in "${!names[@]}"; do
|
for i in "${!names[@]}"; do
|
||||||
rx="^$path/"
|
rx="^$path"
|
||||||
if [[ ${names[$i]} =~ $rx ]]; then
|
if [[ ${names[$i]} =~ $rx ]]; then
|
||||||
unset "names[$i]"
|
unset "names[$i]"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue