added better testing
authorThomas Vander Stichele <thomas@apestaart.org>
Mon, 10 Dec 2001 13:22:58 +0000 (13:22 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Mon, 10 Dec 2001 13:22:58 +0000 (13:22 +0000)
Original commit message from CVS:
added better testing

autogen.sh

index d3fa2cc..938995c 100755 (executable)
@@ -31,8 +31,8 @@ version_check ()
 
   debug "major $MAJOR minor $MINOR micro $MICRO"
   VERSION=$MAJOR
-  if test ! -z $MINOR; then VERSION=$VERSION.$MINOR; else MINOR=0; fi
-  if test ! -z $MICRO; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
+  if test ! -z "$MINOR"; then VERSION=$VERSION.$MINOR; else MINOR=0; fi
+  if test ! -z "$MICRO"; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
 
   debug "major $MAJOR minor $MINOR micro $MICRO"
   echo "Checking for $1 > $VERSION ..."