summaryrefslogtreecommitdiff
path: root/gst-autogen.sh
diff options
context:
space:
mode:
authorDavid I. Lehn <dlehn@users.sourceforge.net>2002-10-17 05:39:12 +0000
committerDavid I. Lehn <dlehn@users.sourceforge.net>2002-10-17 05:39:12 +0000
commitcd050468e0d9e0d1b9134eb3081e2ab3228f0c01 (patch)
treee5ec49f70c539225d1fd7d69cd88af252e01edd7 /gst-autogen.sh
parent2f0e1ecbfe7d27cf1b2215204958c95516db173d (diff)
reset version check failure var each time it's used add some extra debug msgs for verion check
Original commit message from CVS: reset version check failure var each time it's used add some extra debug msgs for verion check
Diffstat (limited to 'gst-autogen.sh')
-rw-r--r--gst-autogen.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/gst-autogen.sh b/gst-autogen.sh
index 20d7164..07225a5 100644
--- a/gst-autogen.sh
+++ b/gst-autogen.sh
@@ -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