reset version check failure var each time it's used add some extra debug msgs for...
authorDavid I. Lehn <dlehn@users.sourceforge.net>
Thu, 17 Oct 2002 05:39:12 +0000 (05:39 +0000)
committerDavid I. Lehn <dlehn@users.sourceforge.net>
Thu, 17 Oct 2002 05:39:12 +0000 (05:39 +0000)
Original commit message from CVS:
reset version check failure var each time it's used
add some extra debug msgs for verion check

gst-autogen.sh

index 20d7164..07225a5 100644 (file)
@@ -30,8 +30,6 @@ version_check ()
   MINOR=$5
   MICRO=$6
 
-  WRONG=
-
   # for backwards compatibility, we let PKG_PATH=PACKAGE when PKG_PATH null
   if test -z "$PKG_PATH"; then PKG_PATH=$PACKAGE; fi
   debug "major $MAJOR minor $MINOR micro $MICRO"
@@ -80,14 +78,21 @@ version_check ()
     #start checking the version
     debug "version check"
 
+    # reset check
+    WRONG=
+
     if [ ! "$pkg_major" -gt "$MAJOR" ]; then
-      debug "$pkg_major <= $MAJOR"
+      debug "major: $pkg_major <= $MAJOR"
       if [ "$pkg_major" -lt "$MAJOR" ]; then
+        debug "major: $pkg_major < $MAJOR"
         WRONG=1
       elif [ ! "$pkg_minor" -gt "$MINOR" ]; then
+        debug "minor: $pkg_minor <= $MINOR"
         if [ "$pkg_minor" -lt "$MINOR" ]; then
+          debug "minor: $pkg_minor < $MINOR"
           WRONG=1
         elif [ "$pkg_micro" -lt "$MICRO" ]; then
+          debug "micro: $pkg_micro < $MICRO"
          WRONG=1
         fi
       fi