From: mjwybrow Date: Thu, 1 Feb 2007 01:51:09 +0000 (+0000) Subject: * autogen.sh: Improve the versionCheck test to be more portable. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af2882b64d63f357d824ed7f0f86336f87c0624c;p=inkscape.git * autogen.sh: Improve the versionCheck test to be more portable. --- diff --git a/autogen.sh b/autogen.sh index b37c09b52..aa426d2f4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -34,7 +34,7 @@ MAJOR2=`echo "$2" | cut -d"." -f1`; MINOR2=`echo "$2" | cut -d"." -f2;` test -z "$MINOR1" && MINOR1="0"; -if (("$MAJOR1" > "$MAJOR2"))||(((("$MAJOR1" == "$MAJOR2")) && (("$MINOR1" \>= "$MINOR2")))); then +if [ "$MAJOR1" -gt "$MAJOR2" ] || [ "$MAJOR1" -eq "$MAJOR2" -a "$MINOR1" -ge "$MINOR2" ]; then echo "yes (version $1)" else echo "Too old (found version $1)!"