Fix README/cmake format.

This commit is contained in:
James Goppert
2018-03-28 00:11:03 -04:00
committed by James Goppert
parent d142ac234c
commit e7c95fa027
4 changed files with 227 additions and 222 deletions
+14 -12
View File
@@ -12,17 +12,19 @@ format_wildcards="""
if [[ $format -eq 1 ]]
then
echo formatting
$astyle ${format_wildcards}
echo formatting
$astyle ${format_wildcards}
else
echo checking format...
$astyle --dry-run ${format_wildcards} | grep Formatted &>/dev/null
if [[ $? -eq 0 ]]
then
echo Error: need to format
echo "From cmake build directory run: 'make format'"
exit 1
fi
echo no formatting needed
exit 0
echo checking format...
$astyle --dry-run ${format_wildcards} | grep Formatted &>/dev/null
if [[ $? -eq 0 ]]
then
echo Error: need to format
echo "From cmake build directory run: 'make format'"
exit 1
fi
echo no formatting needed
exit 0
fi
# vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 :