summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c12be57)
raw | patch | inline | side by side (parent: c12be57)
author | mjwybrow <mjwybrow@users.sourceforge.net> | |
Thu, 1 Feb 2007 01:51:09 +0000 (01:51 +0000) | ||
committer | mjwybrow <mjwybrow@users.sourceforge.net> | |
Thu, 1 Feb 2007 01:51:09 +0000 (01:51 +0000) |
autogen.sh | patch | blob | history |
diff --git a/autogen.sh b/autogen.sh
index b37c09b526d04fa5719848b6a08c0c1e437c8d6d..aa426d2f407c015a7051c546a3c0596972dc24d2 100755 (executable)
--- a/autogen.sh
+++ b/autogen.sh
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)!"