Add check to runastyle to enforce correct astyle version usage.
This commit is contained in:
parent
951a81d0d2
commit
2525b9db40
|
@ -1,4 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
ASTYLE_VERSION="Artistic Style Version 2.01"
|
||||||
|
if [ "`astyle --version 2>&1`" != "${ASTYLE_VERSION}" ]; then
|
||||||
|
echo "You should use: ${ASTYLE_VERSION}";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
style="--style=ansi --lineend=linux --min-conditional-indent=0"
|
style="--style=ansi --lineend=linux --min-conditional-indent=0"
|
||||||
options="--pad-header --unpad-paren --suffix=none"
|
options="--pad-header --unpad-paren --suffix=none"
|
||||||
|
|
Loading…
Reference in New Issue