Work on format testing.

This commit is contained in:
jgoppert
2015-11-04 22:48:13 -05:00
parent eddc55827a
commit b818774f6a
3 changed files with 36 additions and 6 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
echo pwd:$PWD
format=$1
format_wildcards="""
./matrix/*.*pp
./test/*.*pp
"""
if [[ $format ]]
then
echo formatting
astyle ${format_wildcards}
else
echo checking format
astyle --dry-run ${format_wildcards} | grep Formatted
if [[ $? -eq 0 ]]
then
echo need to format
exit 1
fi
fi