mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Initial file
This commit is contained in:
parent
bc65e31a6a
commit
756e5c1b72
1 changed files with 15 additions and 0 deletions
15
scripts/check-c-formatting.sh
Executable file
15
scripts/check-c-formatting.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
FORMAT_CMD="indent -linux -l80 -i2 -nut"
|
||||
echo $1
|
||||
|
||||
$FORMAT_CMD $1 -o $1.format-test
|
||||
|
||||
diff $1 $1.format-test > /dev/null
|
||||
#ret=$?
|
||||
#
|
||||
#if [[ $ret -eq 0 ]]; then
|
||||
# echo "passed."
|
||||
#else
|
||||
# echo "failed."
|
||||
#fi
|
Loading…
Add table
Reference in a new issue