ASVER=`astyle --version 2>&1 | grep -o -E "[0-9.]+"`
if test "${ASVER}" != "2.03" ; then
- echo "Astyle version problem. You have ${ASVER} instead of 2.03";
+ echo "Astyle version problem. You have ${ASVER} instead of 2.03"
+ ASVER=""
else
echo "Found astyle ${ASVER}. Formatting..."
fi
#
# Code Style formatting maintenance
#
- if test "${ASVER}" = "1.23"; then
+ if test "${ASVER}"; then
${ROOT}/scripts/formater.pl ${FILENAME}
if test -e $FILENAME -a -e "$FILENAME.astylebak"; then
md51=`cat $FILENAME| tr -d "\n \t\r" | $MD5`;