mirror of
https://github.com/TREX-CoE/Sherman-Morrison.git
synced 2025-01-14 14:46:38 +01:00
15 lines
296 B
Bash
15 lines
296 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
STYLE='--style=LLVM'
|
||
|
FORMATER='clang-format -i'
|
||
|
|
||
|
if [[ -z $SMVARS ]]
|
||
|
then
|
||
|
echo '$SMVARS is not set. Please source '/path/to/Sherman-Morrison/smvars.sh''
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
for ext in c cpp h hpp
|
||
|
do
|
||
|
find $SMROOT -type f -iname "*.${ext}" -exec echo "$FORMATER $STYLE" {} \;
|
||
|
done
|