]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
source-maintenance.sh: only check astyle version once
authorsquidadm@squid-cache.org <>
Sat, 20 Dec 2014 07:09:43 +0000 (07:09 +0000)
committersquidadm@squid-cache.org <>
Sat, 20 Dec 2014 07:09:43 +0000 (07:09 +0000)
scripts/source-maintenance.sh

index 3891594a2bd969bc74c64a44f4ff7875a514b56c..5782d4b4559ff0ad70a6e29200dd3450aae4bdba 100755 (executable)
@@ -33,7 +33,8 @@ ROOT=`bzr root`
 
 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
@@ -63,7 +64,7 @@ for FILENAME in `bzr ls --versioned`; do
        #
        # 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`;