Add check to runastyle to enforce correct astyle version usage.

This commit is contained in:
Reijo Tomperi 2011-02-11 23:37:38 +02:00
parent 951a81d0d2
commit 2525b9db40
1 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,9 @@
#!/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"
options="--pad-header --unpad-paren --suffix=none"