Compare commits
No commits in common. "9343842eae6e619235766f29ed31393e8e70e3d9" and "c734ede4e6c5a79862bca48b8c64b0e93e0f9d9e" have entirely different histories.
9343842eae
...
c734ede4e6
2 changed files with 6 additions and 0 deletions
5
otto.sh
5
otto.sh
|
|
@ -11,6 +11,11 @@ MODULE_DIR="${TEMPLATE_FILES}/modules"
|
||||||
|
|
||||||
|
|
||||||
format_source_code () {
|
format_source_code () {
|
||||||
|
if [ ! -f .clang-format]; then
|
||||||
|
echo "Missing '.clang-format' file!"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
#Get a list of all C files
|
#Get a list of all C files
|
||||||
source_c_files=$(find ./src -name '*.c')
|
source_c_files=$(find ./src -name '*.c')
|
||||||
for f in $source_c_files; do
|
for f in $source_c_files; do
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,4 @@ int main(int argc, char **argv)
|
||||||
printf("Hello!\n");
|
printf("Hello!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue