this makes somewhat more sense
authorThomas Vander Stichele <thomas@apestaart.org>
Mon, 10 Dec 2001 13:36:11 +0000 (13:36 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Mon, 10 Dec 2001 13:36:11 +0000 (13:36 +0000)
Original commit message from CVS:
this makes somewhat more sense

autogen.sh

index 336e46d..6b31fa2 100755 (executable)
@@ -58,11 +58,11 @@ version_check ()
   #start checking the version
   debug "version check"
 
-  if [ "$pkg_major" \< "$MAJOR -o "$pkg_major" = $MAJOR" ]; then
+  if [ ! "$pkg_major" \> "$MAJOR" ]; then
     debug "$pkg_major <= $MAJOR"
     if [ "$pkg_major" \< "$MAJOR" ]; then
       WRONG=1
-    elif [ "$pkg_minor" \< "$MINOR -o $pkg_minor = $MINOR" ]; then
+    elif [ ! "$pkg_minor" \> "$MINOR" ]; then
       if [ "$pkg_minor" \< "$MINOR" ]; then
         WRONG=1
       elif [ "$pkg_micro" \< "$MICRO" ]; then