mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
use gnu indent to enforce coding style and adapt source
- indent options are listed in ./.indent.pro - use test case to run indent
This commit is contained in:
15
tests/indent.sh
Executable file
15
tests/indent.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
ret=0
|
||||
for f in ../**/*.c ../**/*.h; do
|
||||
case $f in
|
||||
../**/CMakeFiles/**/*)
|
||||
;;
|
||||
*)
|
||||
INDENT_PROFILE=../.indent.pro indent -st $f | diff -u $f -
|
||||
ret=$((ret+$?))
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
exit $ret
|
||||
Reference in New Issue
Block a user